Access to undeclared property _propertyValidationState
on simple templates
#49
Labels
code style
Improve code style of the generated code
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug

I initially found this and various other bugs using PHPStan:
The vast majority of these issues are the same thing, but only this one looks actively harmful as far as I can tell (most of the others are just
unused use
and dead code which could be prevented from generating with the right efforts).Bear in mind that this is just PHPStan level 1, and higher levels might find more problems.
Expected behavior
The generated code shouldn't be trying to access an undeclared property. This happens in both mutable and immutable models.
Schema
My generator config can be seen here: https://github.com/pmmp/DataModels/blob/3f398d966d5180d68e33c8f4054ab592094ea54c/generate-schemas.php
Version:
0.21.5
The text was updated successfully, but these errors were encountered: