We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
PHPStan has some Very Special Magic which allows the matches variable to be usefully-typed, but the magic isn't triggered by \Safe\preg_match
<?php require_once "vendor/autoload.php"; // Dumped type: array{0?: string, 1?: non-empty-string} preg_match("/te(.)ting/", "testing patterns", $matches); \PHPStan\dumpType($matches); // Dumped type: array<string>|null \Safe\preg_match("/te(.)ting/", "testing patterns", $matches); \PHPStan\dumpType($matches);
The text was updated successfully, but these errors were encountered:
Type hints for Safe\preg_match, fixes #40
f02f331
d57c0b5
66036d5
b2a8a6d
666548a
71cb3dc
No branches or pull requests
PHPStan has some Very Special Magic which allows the matches variable to be usefully-typed, but the magic isn't triggered by \Safe\preg_match
The text was updated successfully, but these errors were encountered: