https://insphpect.com/report/5f168d883467d
I just randomly chose a PHP project from my main Github page. Happened to be this one 🤷♂️
The tool seems to mope about usage of new Unit() in Islambey\RSMQ\RSMQ. After careful inspection, all the 'utils' could be static functions. There is not state (no $this) in Islambey\RSMQ\Util. Maybe use them like that?
Edit: What do you know. It will also tell you not to use static functions. Example
https://insphpect.com/report/5f168d883467d
I just randomly chose a PHP project from my main Github page. Happened to be this one 🤷♂️
The tool seems to mope about usage of
new Unit()in Islambey\RSMQ\RSMQ. After careful inspection, all the 'utils' could be static functions. There is not state (no$this) in Islambey\RSMQ\Util. Maybe use them like that?Edit: What do you know. It will also tell you not to use static functions. Example