### Feature request while implementing the [first iteration of `preg_match`](https://github.com/phpstan/phpstan-src/pull/2589) array-shape inference, I got a few ideas on how the type inference could be improved. leaving it here as a feature request, so its not forgotten https://phpstan.org/r/1e3506dd-78dc-4bbe-9c9e-2a5a2928fcfc ### Did PHPStan help you today? Did it make you happy in any way? _No response_
Activity
ondrejmirtes commentedon Jun 21, 2024
First thing we should is to cover preg_match_all and maybe others as well.
phpstan-bot commentedon Aug 1, 2024
@staabm After the latest push in 1.12.x, PHPStan now reports different result with your code snippet:
Full report
Expected type array{string, non-falsey-string}, actual: array{string, non-empty-string}phpstan-bot commentedon Aug 5, 2024
@staabm After the latest push in 1.12.x, PHPStan now reports different result with your code snippet:
Full report
Expected type array{string, non-falsey-string}, actual: array{string, non-falsy-string}github-actions commentedon Sep 29, 2024
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.