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

ThrowsScope: Uncaught TypeError: array_keys() expects parameter 1 to be array, null given #65

Closed
ro0NL opened this issue Feb 14, 2019 · 1 comment

Comments

@ro0NL
Copy link

ro0NL commented Feb 14, 2019

/app $ phpstan analyse --debug
Note: Using configuration file /app/phpstan.neon.
/app/.../Resources/config/form.php

Fatal error: Uncaught TypeError: array_keys() expects parameter 1 to be array, null given in src/Rules/ThrowsScope.php:96
Stack trace:
#0 src/Rules/ThrowsScope.php(96): array_keys(NULL)
#1 src/Rules/ThrowsScope.php(82): Pepakriz\PHPStanExceptionRules\Rules\ThrowsScope->isExceptionCaught('Symfony\\Compone...')
#2 [internal function]: Pepakriz\PHPStanExceptionRules\Rules\ThrowsScope->Pepakriz\PHPStanExceptionRules\Rules\{closure}('Symfony\\Compone...')
#3 src/Rules/ThrowsScope.php(83): array_filter(Array, Object(Closure))
#4 src/Rules/ThrowsPhpDocRule.php(639): Pepakriz\PHPStanExceptionRules\Rules\ThrowsScope->filterExceptionsByUncaught(Array)
#5 ... in src/Rules/ThrowsScope.php on line 96
@pepakriz
Copy link
Owner

Probably duplication of #64

pepakriz added a commit that referenced this issue Feb 14, 2019
pepakriz added a commit that referenced this issue Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants