rectorphp / swiss-knife

Swiss knife in pocket of every upgrade architect!
https://getrector.com
MIT License
72 stars 8 forks source link

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

Open alexndlm opened 4 weeks ago

alexndlm commented 4 weeks ago

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

TomasVotruba commented 4 weeks ago

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

What result do you get with this command on interfaces?

alexndlm commented 4 weeks ago

Like this.

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

 

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

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

alexndlm commented 4 weeks ago

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