When a class property is assigned via a function that takes a reference, the type specified in functionMap.php seems to not be taken into account. Or at least it's the case with proc_open(). Although I'm not sure if the types given in functionMap.php are understood to be equivalent to @param-out.
'proc_open' => ['resource|false', 'command'=>'string', 'descriptorspec'=>'array', '&w_pipes'=>'resource[]', 'cwd='=>'?string', 'env='=>'?array', 'other_options='=>'array'],
No error.
Bug report
When a class property is assigned via a function that takes a reference, the type specified in
functionMap.phpseems to not be taken into account. Or at least it's the case withproc_open(). Although I'm not sure if the types given infunctionMap.phpare understood to be equivalent to@param-out.functionMap.php:Code snippet that reproduces the problem
https://phpstan.org/r/a76b47ab-8e57-40da-b76e-60fd02c2470e
Expected output
No error.
Did PHPStan help you today? Did it make you happy in any way?
No response