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
{{ message }}
Repository navigation
Templated static properties should not be allowed. #11599
We might be able to do it just for properties and not break any weird real-world scenarios (there are weird scenarios for methods), but for properties the current API of FileTypeMapper doesn't allow it :/
It'd be easier to have a new rule to point it out in static properties, instead of changing the engine to ignore @template altogether.
Activity
ondrejmirtes commentedon Aug 31, 2024
There was an attempt to do this for both properties and methods: phpstan/phpstan-src#2232
We might be able to do it just for properties and not break any weird real-world scenarios (there are weird scenarios for methods), but for properties the current API of FileTypeMapper doesn't allow it :/
It'd be easier to have a new rule to point it out in static properties, instead of changing the engine to ignore
@templatealtogether.