Skip to content

Commit bf0c2b0

Browse files
Merge pull request #31 from m-bymike/master
[Bugfix] Fix unsupported scalar expression
2 parents 4316740 + c3b3caa commit bf0c2b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/Commands/AbstractGeneratorCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ abstract class AbstractGeneratorCommand extends GeneratorCommand
8585
*
8686
* @var string
8787
*/
88-
private $stubsDirectory = __DIR__ . '/../../../stubs';
88+
private $stubsDirectory;
8989

9090
/**
9191
* Create a new config clear command instance.
@@ -99,6 +99,7 @@ public function __construct(Filesystem $files)
9999
$this->useEloquent = config('json-api.generator.use-eloquent', true);
100100
$this->subNamespace = config('json-api.generator.namespace', 'JsonApi');
101101
$this->namespaceByResource = config('json-api.generator.by-resource', true);
102+
$this->stubsDirectory = __DIR__ . '/../../../stubs';
102103
}
103104

104105
/**

0 commit comments

Comments
 (0)