8000 [Bugfix] Fix generator command in Laravel 5.5 · Naxon/laravel-json-api@b5e59b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5e59b1

Browse files
committed
[Bugfix] Fix generator command in Laravel 5.5
Fixes cloudcreativity#138
1 parent 145fcb2 commit b5e59b1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file. This project adheres to
33
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
44

5+
## Unreleased
6+
7+
### Fixed
8+
- [#138](https://github.com/cloudcreativity/laravel-json-api/issues/138)
9+
Generator commands not working since Laravel v5.5.28
10+
511
## [0.11.3] - 2017-12-01
612

713
### Fixed

src/Console/Commands/AbstractGeneratorCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct(Filesystem $files, Repository $apiRepository)
8989
}
9090

9191
/**
92-
* @return bool|null
92+
* @return int
9393
*/
9494
public function handle()
9595
{
@@ -99,8 +99,8 @@ public function handle()
9999
}
100100

101101
/** @todo remove when removing support for Laravel 5.4 */
102-
if (is_callable(['parent', 'fire'])) {
103-
return (parent::fire() !== false) ? 0 : 1;
102+
if (method_exists($this, 'fire')) {
103+
return ($this->fire() !== false) ? 0 : 1;
104104
}
105105

106106
return (parent::handle() !== false) ? 0 : 1;

0 commit comments

Comments
 (0)
0