Closed szepeviktor closed 4 years ago
Please exclude plugin-name/tests/phpstan/WPH_Widget.php
from codacy checks. It is a slightly modified copy.
Please exclude
plugin-name/tests/phpstan/WPH_Widget.php
from codacy checks. It is a slightly modified copy.
I released a new package few days ago to fix an issue, maybe we give to phpstan the path to the original file and avoid that is included.
maybe we give to phpstan the path to the original file
That would be very nice!
This conditional is the problem. PHPStan does not read definitions inside a conditional.
I think that package should have 2 files: a loader with the conditional and a clean class file. What do you think?
Released a new widget-helper version with that change :-D
Well done :)
Oh nooooooooooooooooo!
tests/phpstan/bootstrap.php
I've missed to commit that file :(
I had contained all missing constants.
Mistake: I did https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/pull/163/files#diff-c52d63b356277393ceb8dbeddbf6c956
it doesn't contain all the constants of https://github.com/WPBP/WordPress-Plugin-Boilerplate-Powered/blob/master/plugin-name/plugin-name.php and this can explain some errors in actions but I am updating it
TODO: Add file names for each ignored problem.