Skip to content

Commit 4272845

Browse files
committed
Updated parent method usage
1 parent c2982f1 commit 4272845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/MakeCriterionCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function createCriterion()
6767
if ($this->laravel->runningInConsole() && $this->fileManager->exists($filePath)) {
6868
$response = $this->ask("The criterion [{$fileName}] already exists. Do you want to overwrite it?", 'Yes');
6969

70-
if ($response != 'Yes') {
70+
if (!$this->isResponsePositive($response)) {
7171
$this->line("The criterion [{$fileName}] will not be overwritten.");
7272
return;
7373
}

0 commit comments

Comments
 (0)