Skip to content

Commit aa16387

Browse files
committed
Update changelog
1 parent f3b50dd commit aa16387

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Removed
1515

16+
## [3.5.0] - Tuesday, 23 April 2019
17+
### Added
18+
- Option to seed faker for deterministic output (https://github.com/mpociot/laravel-apidoc-generator/pull/503)
19+
- Support for binding prefixes (https://github.com/mpociot/laravel-apidoc-generator/pull/498)
20+
- Ability to override Laravel `config` (https://github.com/mpociot/laravel-apidoc-generator/pull/496)
21+
- Allow override of the name 'general' for ungrouped routes (https://github.com/mpociot/laravel-apidoc-generator/pull/491)
22+
23+
### Changed
24+
- Use parameter-bound URL in doc examples (https://github.com/mpociot/laravel-apidoc-generator/pull/500)
25+
26+
### Fixed
27+
- Request router now matches when router has sub-domain (https://github.com/mpociot/laravel-apidoc-generator/pull/493)
28+
1629
## [3.4.4] - Saturday, 30 March 2019
1730
### Fixed
1831
- Allow users specify custom Content-type header for Markdown examples (https://github.com/mpociot/laravel-apidoc-generator/pull/486)

src/Tools/Generator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private function generateDummyValue(string $type)
279279
if ($this->fakerSeed) {
280280
$faker->seed($this->fakerSeed);
281281
}
282-
$fakes = [
282+
$fakeFactories = [
283283
'integer' => function () use ($faker) {
284284
return $faker->numberBetween(1, 20);
285285
},
@@ -303,9 +303,9 @@ private function generateDummyValue(string $type)
303303
},
304304
];
305305

306-
$fake = $fakes[$type] ?? $fakes['string'];
306+
$fakeFactory = $fakeFactories[$type] ?? $fakeFactories['string'];
307307

308-
return $fake();
308+
return $fakeFactory();
309309
}
310310

311311
/**

0 commit comments

Comments
 (0)