Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ conditionalTags:
phpstan.broker.methodsClassReflectionExtension: %doctrine.allCollectionsSelectable%

services:
otherMethodAnalysisParser: # identical to defaultAnalysisParser, but uses inner PathRoutingParser without cleaning parser
class: PHPStan\Parser\CachedParser
arguments:
originalParser: @pathRoutingParser
cachedNodesByStringCountMax: %cache.nodesByStringCountMax%
autowired: false

pathRoutingOtherMethodAnalysisParser: # identical to pathRoutingParser, but no cleaning parser is used
class: PHPStan\Parser\PathRoutingParser
arguments:
currentPhpVersionRichParser: @currentPhpVersionRichParser
currentPhpVersionSimpleParser: @currentPhpVersionRichParser
php8Parser: @php8Parser
autowired: false

-
class: PHPStan\Type\Doctrine\DescriptorRegistryFactory
-
Expand Down Expand Up @@ -164,7 +179,7 @@ services:
class: PHPStan\Type\Doctrine\QueryBuilder\OtherMethodQueryBuilderParser
arguments:
descendIntoOtherMethods: %doctrine.searchOtherMethodsForQueryBuilderBeginning%
parser: @defaultAnalysisParser
parser: @otherMethodAnalysisParser

-
class: PHPStan\Stubs\Doctrine\StubFilesExtensionLoader
Expand Down