feat(deps): add phpstan-disallowed-calls and phpstan-deprecation-rules#16
Merged
kojiromike merged 1 commit intomainfrom Jan 18, 2026
Merged
feat(deps): add phpstan-disallowed-calls and phpstan-deprecation-rules#16kojiromike merged 1 commit intomainfrom
kojiromike merged 1 commit intomainfrom
Conversation
Add third-party PHPStan extensions and consolidate configuration: Dependencies: - Add spaze/phpstan-disallowed-calls ^4.0 for forbidding function calls - Add phpstan/phpstan-deprecation-rules ^2.0 for deprecation reporting Configuration changes: - Migrate SQL functions (sqlQuery, sqlStatement, etc.) to disallowedFunctionCalls - Add call_user_func/call_user_func_array to disallowedFunctionCalls - Consolidate core.neon and module.neon into single extension.neon - Enable phpstan/extension-installer auto-loading via extra.phpstan.includes - Enable sort-packages in composer config Removed: - Custom ForbiddenFunctionsRule class (now handled by spaze config) - Separate core.neon and module.neon files Documentation: - Update README with simplified usage (auto-loaded, no manual include needed) - Add warning about duplicate include errors - Use first-class callable syntax in examples - Update copyright year to 2026 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
608a762 to
4beafe6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spaze/phpstan-disallowed-calls^4.0 andphpstan/phpstan-deprecation-rules^2.0disallowedFunctionCallsconfigForbiddenFunctionsRule(now handled by spaze config)core.neonandmodule.neoninto singleextension.neonTest plan
🤖 Generated with Claude Code