Markus Staab
                                            Markus Staab
                                        
                                    just guesswork: could also be some kind of security software, e.g. a antivirus or similar, which blocks the subprocess creation
hey guys, thx for reporting. how do you know `sscanf` supports regex kind formats? I am wondering that its not mentioned in the manual: https://www.php.net/manual/en/function.sscanf.php https://www.php.net/manual/en/function.sprintf.php
I agree with @mvorisek that phpstan should know `get_called_class` returns a `class-string` instead of a `C`, so at least type wise, there is a bug involved. see php.net manual about...
done in https://github.com/phpstan/phpstan-src/pull/1469/commits/cb519c69edb2192ef6a47a6175f15c4852c380ee
Before the linked PR phpstan is using a single resultCache file for all projects, no matter which phpstan version, which analyzed path etc. (It uses only separate ones, in case...
what is the return type of `$redis->multi()`? is it still the same `$redis` class, or is this "multi-mode" built on top of a different type?
Yeah.. phpstan can't do stateful apis. I think it would be worth opening a issue on the redis project to suppose a different type for multi mode, which would be...
one case which is interessting: sometimes `@var` are usefull because e.g. phpstorm does not recognize the type correctly without the `@var`. not sure whether this is something to consider (e.g....
For the above issue it would be, no error on line 10/11 for php 8.2+ We can achieve this also with existing signature mechanics though https://phpstan.org/r/1570736d-c072-45a2-bad5-51ed6f41454a
Combining `void` with another type in a union is not possible. It either returns something or not. But cannot do both at the same time.