You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
includes:- vendor/phpstan/phpstan-symfony/extension.neon- vendor/phpstan/phpstan-deprecation-rules/rules.neon- vendor/phpstan/phpstan-strict-rules/rules.neonparameters:level:7tmpDir:var/cache/_phpstanparallel:jobSize:20maximumNumberOfProcesses:16minimumNumberOfJobsPerProcess:2processTimeout:30.0symfony:containerXmlPath:var/cache/dev/App_KernelDevDebugContainer.xmlexcludePaths:- %rootDir%/../../../src/DataFixtures/*- %rootDir%/../../../src/Migrations/*universalObjectCratesClasses:- Faker\GeneratorignoreErrors:- '#^Call to an undefined method Faker\\Generator::#'tipsOfTheDay:falsepolluteScopeWithLoopInitialAssignments:falsepolluteScopeWithAlwaysIterableForeach:falsecheckAlwaysTrueCheckTypeFunctionCall:truecheckAlwaysTrueInstanceof:truecheckAlwaysTrueStrictComparison:truecheckExplicitMixedMissingReturn:truecheckFunctionNameCase:truereportMaybesInMethodSignatures:truereportStaticMethodSignatures:truecheckTooWideReturnTypesInProtectedAndPublicMethods:truetreatPhpDocTypesAsCertain:falsecheckMissingIterableValueType:false# handled by PHPCs with more granularity
The text was updated successfully, but these errors were encountered:
I have a simple compiler pass like below:
PHPStan with Symfony extension reports that
has()
will always return true:This is taken straight from Symfony docs at https://symfony.com/doc/current/service_container/tags.html#create-a-compiler-pass and they even add a separate warning stating "// always first check if the primary service is defined". Thus, I think this is a bug in PHPStan Symfony extension.
Here's my full PHPStan config:
The text was updated successfully, but these errors were encountered: