Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect the exit code from phpstan and exit with the same. #115

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

j3j5
Copy link
Contributor

@j3j5 j3j5 commented Aug 8, 2018

Right now, larastan always exits with 0 regardless of the errors phpstan finds. This change exits the process with the same exit code as phpstan did, allowing a better integration of larastan on build services.

@keryja
Copy link

keryja commented Aug 9, 2018

If I recall correctly the return value of ::handle() is used as the exit code for the process, I recommend using that instead of calling a hard exit.

@j3j5
Copy link
Contributor Author

j3j5 commented Aug 9, 2018

You are absolutely right, TIL. Changed! Thanks for the tip @keryja

@j3j5
Copy link
Contributor Author

j3j5 commented Aug 9, 2018

I have no idea why travis has failed, some 404 error when trying to install Laravel, but I have the feeling it isn't related to this code ¯_(ツ)_/¯

@pleckey
Copy link

pleckey commented Aug 9, 2018

Ha! Didn't even notice this open before I opened #117 - closing mine, you beat me to it @j3j5

@nunomaduro nunomaduro merged commit 27065f8 into larastan:master Aug 27, 2018
@nunomaduro
Copy link
Collaborator

@j3j5 @keryja @pleckey Thank you!

@j3j5
Copy link
Contributor Author

j3j5 commented Aug 27, 2018

Great, welcome back to the ☁️ @nunomaduro!

@j3j5 j3j5 deleted the fix/return-code branch August 27, 2018 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants