I’m new to slim, and I decided to give it a try with the latte template engine following this guide: Slim 4 - Latte Template Engine | Daniel Opitz - Blog
I’m looking for a way to add latte validation to PHPStan, I wish to validate if the template name is valid and if all the variables are present.
I found the package efabrica/phpstan-latte that should be doing exactly this, but it seem to be created with the nette application framework in mind.
I only managed to get this error: “:-1 Latte template home.latte was not analysed.” even if I’m calling the home.latte template, PHPStan does not seem to recognize it.
Has anybody managed to make this extension work with php slim? Or maybe know an other extension to validate latte file?