Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle UnresolvableQueryException in *Extensions #399

Merged
merged 9 commits into from
May 31, 2022
Merged

handle UnresolvableQueryException in *Extensions #399

merged 9 commits into from
May 31, 2022

Conversation

staabm
Copy link
Owner

@staabm staabm commented May 31, 2022

to prevent internal phpstan errors beeing reported like

phpstan analyse -c application/B2C/phpstan.neon.dist -v
 401/401 [============================] 100% 11 secs -- -------------------------------------------------------------------------------------------------------------------
     Error
 -- -------------------------------------------------------------------------------------------------------------------
     Internal error: Internal error: Cannot simulate parameter value for type: mixed in file
     C:\dvl\Workspace\fare\library\Fare\Application\Model\Mapper\Adp.php

     Post the following stack trace to https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md:
     #0
     C:\dvl\Workspace\fare\vendor-bin\phpstan\vendor\staabm\phpstan-dba\src\QueryReflection\QueryReflection.php(282):
     staabm\PHPStanDba\QueryReflection\QuerySimulation::simulateParamValueType()
     #1
     C:\dvl\Workspace\fare\vendor-bin\phpstan\vendor\staabm\phpstan-dba\src\QueryReflection\QueryReflection.php(238):
     staabm\PHPStanDba\QueryReflection\QueryReflection->resolveConstantArray()
     #2
     C:\dvl\Workspace\fare\vendor-bin\phpstan\vendor\staabm\phpstan-dba\src\Analyzer\QueryPlanQueryResolver.php(27):
     staabm\PHPStanDba\QueryReflection\QueryReflection->resolveParameters()
     #3
     C:\dvl\Workspace\fare\vendor-bin\phpstan\vendor\staabm\phpstan-dba\src\QueryReflection\QueryReflection.php(435):
     staabm\PHPStanDba\Analyzer\QueryPlanQueryResolver->resolve()
     #4 C:\dvl\Workspace\fare\vendor-bin\phpstan\vendor\staabm\phpstan-dba\src\Rules\QueryPlanAnalyzerRule.php(128):
     staabm\PHPStanDba\QueryReflection\QueryReflection->analyzeQueryPlan()
     #5 C:\dvl\Workspace\fare\vendor-bin\phpstan\vendor\staabm\phpstan-dba\src\Rules\QueryPlanAnalyzerRule.php(93):
     staabm\PHPStanDba\Rules\QueryPlanAnalyzerRule->analyze()
     #6
     phar://C:/dvl/Workspace/fare/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/FileAnalyser.php
     (102): staabm\PHPStanDba\Rules\QueryPlanAnalyzerRule->processNode()
     #7
     phar://C:/dvl/Workspace/fare/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Node/ClassStatementsGathe
     rer.php(104): PHPStan\Analyser\FileAnalyser->PHPStan\Analyser\{closure}()
     #8
     phar://C:/dvl/Workspace/fare/vendor-bin/phpstan/vendor/phpstan/phpstan/phpstan.phar/src/Analyser/NodeScopeResolve
     r.php(460): PHPStan\Node\ClassStatementsGatherer->__invoke()
     #9

to prevent internal phpstan errors beeing reported
@staabm staabm added the bug Something isn't working label May 31, 2022
@staabm staabm marked this pull request as ready for review May 31, 2022 15:08
@staabm staabm enabled auto-merge (squash) May 31, 2022 15:28
@staabm staabm merged commit 211334a into main May 31, 2022
@staabm staabm deleted the unresolvable branch May 31, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants