phpstorm-attributes
phpstorm-attributes copied to clipboard
Psalm: TooManyArguments when passing a value for $mayDependOnGlobalScope to Pure attribute
Message: ERROR: TooManyArguments - foo.php:3:2 - Class JetBrains\PhpStorm\Pure has no __construct, but arguments were passed (see https://psalm.dev/026)
<?php
#[Pure(true)]
function bar($a) {
return $a;
}
that's because the 1.0 release does not have the argument. It has been added later but has not been released (yet)