Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
shalvah committed Feb 11, 2021
2 parents 608e541 + ecb96c3 commit 8fa98d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Removals

## 2.5.2 (Thursday, 11 February 2021)
## 2.5.3 (Thursday, 11 February 2021)
### Fixes
- Properly serialize objects in PHP example request (https://github.com/knuckleswtf/scribe/commit/8059566ef39ec09ebd7eb36ecd2e65d20f0dd2bc)
- Don't include Content-Type header in Guzzle examples (https://github.com/knuckleswtf/scribe/commit/6a1e7504ec4c5a17e4e97996536bd16398823703)
-

## 2.5.2 (Monday, 25 January, 2021)
### Fixes
- Change check for legacy-style factories to check for new style instead. (https://github.com/knuckleswtf/scribe/pull/181)

## 2.5.1 (Wednesday, 16 December 2020)
- PHP 8 support (https://github.com/knuckleswtf/scribe/pull/162)

## 2.5.0
There wasn't a 2.5.0.😕 No reason why; it just skipped my mind.

## 2.4.2 (Tuesday, 1 December 2020)
### Fixes
- Specify the `local` disk when fetching `openapi.yaml` file. (https://github.com/knuckleswtf/scribe/pull/150)
Expand Down
2 changes: 1 addition & 1 deletion src/Tools/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static function getBaseTypeFromArrayType(string $typeName)

public static function getModelFactory(string $modelName, array $states = [])
{
if (!function_exists('factory')) { // Laravel 8 type factory
if (method_exists($modelName, 'factory')) { // Laravel 8 type factory
$factory = call_user_func_array([$modelName, 'factory'], []);
if (count($states)) {
foreach ($states as $state) {
Expand Down

0 comments on commit 8fa98d0

Please sign in to comment.