Closed andersbjorkland closed 1 year ago
Interesting. This is specific to dataRecord
that it's not getting the prefixed $
, that's an oversight somewhere a few weeks/months back!
Thanks!
Did you check if any tests needed updating too?
Sorry, no. Did a quick fix straight on github.dev.
Hi @Firesphere, would you mind releasing a tag release with this fix? PHPStan is complaining about that property thingie...
Tagged
Setup
PHP 8.0 Silverstripe CMS v4.11.0 SilverLeague IDEAnnotator v3.2 PHPStan v1.8
Bug
When running dev/build the IDEAnnotator will add the following PHPDoc to the default PageController in SilverStripe:
Running PHPStan to analyze, it will react to the annotations with the following message:
The property
dataRecord
is not correctly defined as a variable as it is missing the$
-sign.Solution
Fix generation for this property in
ControllerTagGenerator