Skip to content

Add PHPStan and modify error handling in BadgeComposer #18

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

Merged
merged 2 commits into from
Jun 1, 2024

Conversation

m0hanraj
Copy link
Contributor

@m0hanraj m0hanraj commented Jun 1, 2024

This commit adds PHPStan and its related strict rules and deprecation rules to the composer.json. It also modifies the finalizeCoverage method in BadgeComposer to handle errors when badge template file is missing. A test for this scenario has been added to BadgeComposerTest.php.

This commit adds PHPStan and its related strict rules and deprecation rules to the `composer.json`. It also modifies the `finalizeCoverage` method in `BadgeComposer` to handle errors when badge template file is missing. A test for this scenario has been added to `BadgeComposerTest.php`.
This commit corrects a misspelling of 'manipulate' and changes the expected error type in BadgeComposerTest's finalizeCoverage method. The test now anticipates a Throwable exception when a badge template file is missing, enhancing error handling.
@m0hanraj m0hanraj merged commit 4ec24e9 into main Jun 1, 2024
2 checks passed
@m0hanraj m0hanraj deleted the feat/phpstan branch June 1, 2024 16:20
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.

2 participants