Closed spaze closed 1 year ago
Hey @lulco @MartinMystikJonas look I made it to and past the final boss 🦾
Thanks for creating the extension, looking forward to the next releases. If you want, and think it would be useful, feel free to use this code base for some kind of tests, like regression or so. The license allows it but I wanted to be explicit.
The extension helped me to find some buggy code, like for example that I had a form component and a form container sharing the same name. It worked but probably just by coincidence.
Thanks for using our extension! I wish there were more developers using Nette doing it too. Maybe you can share your experiences O:-)
Ad your error - it is corect to use same name for container and control in it. Extension reports it because of its actual implementation which is hacky. We are trying to improve it step by step.
Interesting, having a form container and a field with the same name felt wrong (because of accessing it with $form[foo]
) even though it worked, probably because the field is inside the container sharing the same name, not on the same level.
Anyway, this was an easy change, unlike some other refactoring (which should have been done much much earlier but I was lazy and didn't have the right tools available).
Interesting, having a form container and a field with the same name felt wrong (because of accessing it with
$form[foo]
)
This is kind of transformation we have done to make forms work with extension. The original compiled template is different.
Anyway, this was an easy change, unlike some other refactoring (which should have been done much much earlier but I was lazy and didn't have the right tools available).
This is kind of transformation we have done to make forms work with extension. The original compiled template is different.
Good to know this can also be somehow changed!
The app is running PHPStan on level 8 for quite some time already (5cc25c4aa8d106aaa1755bc1fa70796a6f168806) and now even on level 9 #147, so let's see how far I can bring the Latte extensions.
PHPStan Latte Levels and PRs:
Lnil:
51
68
L0:
79
L1:
71
128
133
L2:
140
135
L3:
142
L4:
171
143
L5:
173
L6:
174
L7:
175
176
L8:
177
L9:
179
+ Bleeding Edge:
185
Some 🐛🐛🐛 discovered later by for example newer versions of the PHPStan Latte extension
189
193