We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm getting a false positive:
Method AssuranceVie\Factory\PdfFactory::createTemporaryFiles() has Throwable in PHPDoc @throws tag but it's not thrown.
/** * @param string[] $absolutePathsOrUrls * * @return File[] * * @throws \Throwable */ private function createTemporaryFiles(array $absolutePathsOrUrls): array { return array_map( function (string $absolutePathOrUrl): File { $content = file_get_contents($absolutePathOrUrl); if (false === $content) { throw new \Exception(sprintf('Cannot get content from %s.', $absolutePathOrUrl)); } return new File($content); }, $absolutePathsOrUrls ); }
No error, an exception can be thrown.
Yes, it helps me a lot.
The text was updated successfully, but these errors were encountered:
Seems like a duplicate of #5001
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Bug report
I'm getting a false positive:
Code snippet that reproduces the problem
Expected output
No error, an exception can be thrown.
Did PHPStan help you today? Did it make you happy in any way?
Yes, it helps me a lot.
The text was updated successfully, but these errors were encountered: