Skip to content

Ci/add phpstan analysis - #55

Merged
leeqvip merged 2 commits into
masterfrom
ci/add-phpstan-analysis
Sep 3, 2026
Merged

leeqvip merged 2 commits into
masterfrom
ci/add-phpstan-analysis

Conversation

@leeqvip

@leeqvip leeqvip commented Sep 3, 2026

Copy link
Copy Markdown
Member

No description provided.

Add phpstan/phpstan as a dev dependency with a level 5 config (src/ only),
bootstrap the ThinkPHP framework helper.php so app()/config()/config_path()
are recognized, and inline-ignore the remaining false positives caused by
think-orm's untyped fluent query builder methods.

Run PHPStan as a step in the existing PHPUnit CI job (before the test suite)
so a failing check blocks the job, and therefore also blocks semantic-release.
- import Throwable/LogicException instead of resolving them in the local namespace
- add missing return in Publish::execute()
- correct Configurable::config() $default PHPDoc type
- simplify redundant is_null() checks proven dead code by phpstan
Copilot stopped work on behalf of leeqvip due to an error September 3, 2026 16:41
@leeqvip
leeqvip merged commit 76940fd into master Sep 3, 2026
32 of 57 checks passed
@leeqvip

leeqvip commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 2.0.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant