Code example:
try {
} catch (NumberReleaseFailedException){ //missed $error var - php 8 allow it
}
Error:
Internal error: PhpParser\NodeVisitorAbstract@anonymous(): Argument #1 ($catchedVariableName) must be of type string, null given, called in
vendor/thecodingmachine/phpstan-strict-rules/src/Rules/Exceptions/ThrowMustBundlePreviousExceptionRule.php on line 34