Skip to content

Commit fc180db

Browse files
committed
Minor fix on command
1 parent 72de3ab commit fc180db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/RepositoryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function createInterface()
135135
*/
136136
protected function createRepository(string $interface, string $fileName)
137137
{
138-
if ($this->hasOption('cache')) $content = $this->fileManager->get($this->stubs['cache-repository']);
138+
if ($this->option('cache')) $content = $this->fileManager->get($this->stubs['cache-repository']);
139139
else $content = $this->fileManager->get($this->stubs['repository']);
140140

141141
$replacements = [

0 commit comments

Comments
 (0)