-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
Internal error on PHPStan 1.11.1 #11059
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
May be reason is in complexity of <?php
namespace Intaro\CRMAppApiBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class ComplexityPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
{
$configs = $container->getParameter('overblog_graphql_types.config');
\PHPStan\dumpType($configs);
// foreach ($configs as $i => $typeConfig) {
// if (!isset($typeConfig['config']['fields'])) {
// continue;
// }
//
// foreach ($typeConfig['config']['fields'] as $j => $field) {
// if (isset($field['complexity'])) {
// continue;
// }
//
// $configs[$i]['config']['fields'][$j]['complexity'] = '@=childrenComplexity';
// }
// }
$container->setParameter('overblog_graphql_types.config', $configs);
}
} And I got output as in attachment |
Could you give me your value from |
Bug report
Source code
Stack trace
Code snippet that reproduces the problem
No response
Expected output
I got this error after updating phpstan/phpstan (1.9.14 => 1.11.1). On previous version there aren't errors. phpstan level = 5
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: