Skip to content

Commit 0629520

Browse files
committed
Fix command return value on failure
1 parent c6b9de5 commit 0629520

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/LaravelConfigCheckerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function handle(
8080

8181
$this->displayResults();
8282

83-
return self::SUCCESS;
83+
return self::FAILURE;
8484
}
8585

8686
private function displayResults(): void

tests/LaravelConfigCheckerCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
->expectsOutputToContain('app'.DIRECTORY_SEPARATOR.'TestClassTwo.php')
2222
->expectsOutputToContain('resources'.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'test-view-one.blade.php')
2323
->expectsOutputToContain('resources'.DIRECTORY_SEPARATOR.'views'.DIRECTORY_SEPARATOR.'test-view-two.blade.php')
24-
->assertExitCode(0);
24+
->assertExitCode(1);
2525
});

0 commit comments

Comments
 (0)