You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: InvalidArgument
at /home/superuser/scripts/dockontrol2/src/Twig/AppExtension.php:18:44
Argument 2 of Twig\TwigFilter::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
new TwigFilter('time_tooltip', [TimeRuntime::class, 'createTimeTooltip'], [
Note that the TwigFilter source does not specify static nor public property for callable:
finalclassTwigFilter
{
/** * @param callable|array{class-string, string}|null $callable A callable implementing the filter. If null, you need to overwrite the "node_class" option to customize compilation. */publicfunction __construct(string$name, $callable = null, array$options = [])
{
I am unable to reproduce this on psalm.dev
I am getting this on all projects with psalm 5.24, but it works fine with 5.23
The text was updated successfully, but these errors were encountered:
I did check for any stubs used, but in the whole project there is no stub for TwigFilter class. I do use psalm/plugin-symfony v 5.1.0, but this stub is not there. So Id assume it reads signature from the source code (vendor/twig/twig/src/TwigFilter.php)
Getting this error:
With the below code
Note that the TwigFilter source does not specify static nor public property for callable:
I am unable to reproduce this on psalm.dev
I am getting this on all projects with psalm 5.24, but it works fine with 5.23
The text was updated successfully, but these errors were encountered: