Bug report
We experience a crash in phpstan.
I narrowed it down to this reproducible code-sample.
It crashes even the phpstan-playground at https://phpstan.org/try so the share-functionality doesn't work
Code snippet that reproduces the problem
<?php declare(strict_types = 1);
function sigh(string $resource) {
if (preg_match("!^3(/.*)?$!", $resource, $m)) {
$resource = count($m) > 1 ? substr($m[1], 1) : '';
}
}
Expected output
I expect phpstan not to crash.
Did PHPStan help you today? Did it make you happy in any way?
No response
Bug report
We experience a crash in phpstan.
I narrowed it down to this reproducible code-sample.
It crashes even the phpstan-playground at https://phpstan.org/try so the share-functionality doesn't work
Code snippet that reproduces the problem
Expected output
I expect phpstan not to crash.
Did PHPStan help you today? Did it make you happy in any way?
No response