Explorar o código

Update changelog

shalvah %!s(int64=6) %!d(string=hai) anos
pai
achega
aa16387938
Modificáronse 2 ficheiros con 16 adicións e 3 borrados
  1. 13 0
      CHANGELOG.md
  2. 3 3
      src/Tools/Generator.php

+ 13 - 0
CHANGELOG.md

@@ -13,6 +13,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Removed
 
+## [3.5.0] - Tuesday, 23 April 2019
+### Added
+- Option to seed faker for deterministic output (https://github.com/mpociot/laravel-apidoc-generator/pull/503)
+- Support for binding prefixes (https://github.com/mpociot/laravel-apidoc-generator/pull/498)
+- Ability to override Laravel `config` (https://github.com/mpociot/laravel-apidoc-generator/pull/496)
+- Allow override of the name 'general' for ungrouped routes (https://github.com/mpociot/laravel-apidoc-generator/pull/491)
+
+### Changed
+- Use parameter-bound URL in doc examples (https://github.com/mpociot/laravel-apidoc-generator/pull/500)
+
+### Fixed
+- Request router now matches when router has sub-domain (https://github.com/mpociot/laravel-apidoc-generator/pull/493)
+
 ## [3.4.4] - Saturday, 30 March 2019
 ### Fixed
 - Allow users specify custom Content-type header for Markdown examples (https://github.com/mpociot/laravel-apidoc-generator/pull/486)

+ 3 - 3
src/Tools/Generator.php

@@ -279,7 +279,7 @@ class Generator
         if ($this->fakerSeed) {
             $faker->seed($this->fakerSeed);
         }
-        $fakes = [
+        $fakeFactories = [
             'integer' => function () use ($faker) {
                 return $faker->numberBetween(1, 20);
             },
@@ -303,9 +303,9 @@ class Generator
             },
         ];
 
-        $fake = $fakes[$type] ?? $fakes['string'];
+        $fakeFactory = $fakeFactories[$type] ?? $fakeFactories['string'];
 
-        return $fake();
+        return $fakeFactory();
     }
 
     /**