From b1d4a979f8f57da4894cb4a40bb756f86cca3ca9 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 24 May 2026 17:51:47 -0500 Subject: [PATCH] fix(ci): remove deprecated PHPStan 1.x config options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHPStan 2.x removed checkMissingIterableValueType, checkGenericClassInNonGenericObjectType, checkAlwaysTrueCheckTypeFunctionCall, checkAlwaysTrueInstanceof, checkAlwaysTrueStrictComparison, and checkExplicitMixedMissingReturn — these are now always enabled at level 5+. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- phpstan.neon | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index b9fb9c4..5c76162 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -16,22 +16,13 @@ parameters: analyseAndScan: - vendor - node_modules (?) - - # Report unknown classes and functions + reportUnmatchedIgnoredErrors: false - - # Check for dead code - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false - + # Additional checks - checkAlwaysTrueCheckTypeFunctionCall: true - checkAlwaysTrueInstanceof: true - checkAlwaysTrueStrictComparison: true - checkExplicitMixedMissingReturn: true checkFunctionNameCase: true checkInternalClassCaseSensitivity: true - + # Ignore common patterns ignoreErrors: # Add project-specific ignores here