phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Add `parse_str` and `mb_parse_str` by-ref result type specifier

Open fluffycondor opened this issue 3 years ago • 1 comments

Fixes one case from phpstan/phpstan#7231

fluffycondor avatar Aug 31 '22 14:08 fluffycondor

Whoops, looks like it still fails. Will fix it tomorrow

fluffycondor avatar Aug 31 '22 14:08 fluffycondor

Thanks, but this should be done via stub after https://github.com/phpstan/phpstan-src/pull/1804.

ondrejmirtes avatar Oct 16 '22 11:10 ondrejmirtes

Thanks, but this should be done via stub after #1804.

But there's no way getting constant arrays from constant strings with @param-out. It's one of the key features of this PR. https://phpstan.org/r/ce7618fa-543a-4e35-ac99-99c2b8f0a7b0

fluffycondor avatar Mar 11 '23 04:03 fluffycondor

I think we would need a new extension-type, which allows to programatically define paramOut types

staabm avatar Mar 11 '23 09:03 staabm