From 7a8781946af66f59e5bb5b3dd8d6921743f2a4a0 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Sun, 30 Mar 2025 01:36:02 +0100 Subject: [PATCH] chore(tooling): make PHPStan rules more strict --- phpstan.neon | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 083a5fafc..b337bd036 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,14 +1,35 @@ includes: + - vendor/phpstan/phpstan/conf/bleedingEdge.neon - vendor/larastan/larastan/extension.neon - vendor/nesbot/carbon/extension.neon + - vendor/phpstan/phpstan-deprecation-rules/rules.neon + - vendor/phpstan/phpstan-strict-rules/rules.neon parameters: + level: max + checkModelProperties: true + checkOctaneCompatibility: true + checkMissingCallableSignature: true + checkTooWideReturnTypesInProtectedAndPublicMethods: true + rememberPossiblyImpureFunctionValues: false + checkBenevolentUnionTypes: true + reportPossiblyNonexistentGeneralArrayOffset: true + reportPossiblyNonexistentConstantArrayOffset: true + reportAlwaysTrueInLastCondition: true + reportAnyTypeWideningInVarTag: true + tipsOfTheDay: false + tmpDir: ./storage/phpstan paths: - app - bootstrap - config - database + - public - resources - routes - - level: max + excludePaths: + - bootstrap/cache + strictRules: + strictArrayFilter: false + ignoreErrors: + - '#Dynamic call to static method Illuminate\\Http\\Request::validate\(\)#'