This error (see screen of small class) the developers of open cart, or everything in order?

view there is not a declared property on request but it assigns the value in line 26 see screen 5c9dc912eb2c4175358389.png
March 19th 20 at 09:07
1 answer
March 19th 20 at 09:09
In php, there is no mandatory Declaration of variables.
Also note the magic methods __get() __set(), which is even more confusing
when you parse someone else's code without documentation.
then why not explicitly declared that property? what's the point? - nicolette_Grant commented on March 19th 20 at 09:12
There is an automatic checker of style and such omissions.
Maybe the code was written long ago and no one refractory.

In phpShtorm or Eclipse such a line would be displayed with the selection.
Also in a modern IDE can automatically
control to commits. Also there are options utilities which can be hung in precommit hook gita - Breana.Prosacco commented on March 19th 20 at 09:15

Find more questions by tags PHP