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

[4.x] Remove Unreachable return in PHPUnit test stubs #1423

Merged
merged 16 commits into from
Dec 26, 2023

Conversation

nathanheffley
Copy link
Contributor

$this->markTestSkipped() is used in many PHPUnit tests to skip testing disabled features, and throws an exception to immediately end the test. However, there is also an unreachable return statement after every call to markTestSkipped. This causes static analysis tools like PHPStan that are looking for dead code to trigger on the tests until someone cleans them up. Since they are functionally irrelevant, it'd be nice to clean up the stubs and drop the return statements.

@taylorotwell taylorotwell merged commit 108e2ce into laravel:4.x Dec 26, 2023
8 checks passed
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

2 participants