rectorphp / swiss-knife

Swiss knife in pocket of every upgrade architect!
https://tomasvotruba.com/blog/cool-features-of-swiss-knife
MIT License
105 stars 8 forks source link

Constant can't be declared private or protected in interface #34

Open alexndlm opened 4 months ago

alexndlm commented 4 months ago

That's what says PHPMD. It will be nice to skip checking consts on interfaces.

TomasVotruba commented 4 months ago

Indeed :+1: https://3v4l.org/1h8D0

What result do you get with this command on interfaces?

alexndlm commented 4 months ago

Like this.

Снимок экрана 2024-06-30 в 13 03 44

 

Снимок экрана 2024-06-30 в 13 04 03
TomasVotruba commented 4 months ago

I see. Could you send PR with a fix? 🙏

alexndlm commented 4 months ago

Maybe - https://github.com/rectorphp/swiss-knife/pull/35?