mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
d9a0cc5311
As per @weirdan's feedback, we can prevent the usage of `object` instances that implement `__invoke()`, as well as `array` callables, by declaring the ctor argument of `ReflectionFunction` to be either a real `Closure`, or a `callable-string`. While this may not be 100% of scenarios, it is a healthy way to identify errors in userland. Ref: https://github.com/vimeo/psalm/pull/8722#discussion_r1027151421 |
||
---|---|---|
.. | ||
extensions | ||
CoreGenericClasses.phpstub | ||
CoreGenericFunctions.phpstub | ||
CoreGenericIterators.phpstub | ||
CoreImmutableClasses.phpstub | ||
ext-apcu.phpstub | ||
Php80.phpstub | ||
Php81.phpstub | ||
Php82.phpstub | ||
phpparser.phpstub | ||
phpredis.phpstub | ||
Reflection.phpstub | ||
SPL.phpstub |