Valentin Udaltsov

Results 47 comments of Valentin Udaltsov

Related to https://github.com/typhoon-php/typhoon/issues/12.

We're planning to add phpDoc properties in https://github.com/typhoon-php/typhoon/issues/8 and Typhoon Hydrator soon. Will that help?

Hi, @xepozz. Thank you for the interest in the Typhoon project ! Right now we don't have plans to analyze procedural code, because it is out of scope of reflection...

I agree that there should be a possibility to configure temporary directory in the taskfile itself. I tend to collect all temp files of the project in a single project...

Thank you! By the way, if I set `TASK_TEMP_DIR=/tmp/.task` globally on my machine, then tasks with same names from different projects will share checksums, right?

> One way to support this that is more in line with our current conventions is to read this variable from the .env file, so that could be committed and...

The `\Closure(...)` is not documented, by the way. This [page](https://psalm.dev/docs/annotating_code/type_syntax/callable_types/) only says that a type can be **suffixed** with `...`.

🤦🤦🤦 Well, the only thing I can tell is that with `mixed...` it now works in both analyzers: https://phpstan.org/r/681abd9e-ec0f-4edb-ab82-134e3be7088e https://psalm.dev/r/2dd7ca2ae0

In fact my solution is wrong: https://phpstan.org/r/9c17bb5f-4087-4201-b684-72a28b0e069c . PHPStan is correct: you cannot pass a `Closure` with narrower parameters to a `Closure` with wider parameters, since parameters are contravariant. This...