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
Could we use type specifying extension to define custom type RelativePathType (extendin ConstantStringType) that would hold constant values here and add it as result of given expressions?
The text was updated successfully, but these errors were encountered:
MartinMystikJonas
changed the title
Use PHPStan node visitors to evaluate complex expression with variables used to construct template paths
Better evaluation of complex expression with variables used to construct template paths
Dec 3, 2022
Option 1: Use PHPStan node visitors to evaluate complex expression with variables used to construct template paths
Use visitor to evaluate every variable assign so it could be used in evaluation of following expressions.
https://phpstan.org/blog/preprocessing-ast-for-custom-rules
Option 2: Use custom Scope class
See solution proposed here phpstan/phpstan#8454 (reply in thread)
Option 3: Type specifying extension
Could we use type specifying extension to define custom type RelativePathType (extendin ConstantStringType) that would hold constant values here and add it as result of given expressions?
The text was updated successfully, but these errors were encountered: