Closed DookiEfromMoon closed 6 years ago
Because this is a class instance variable as far as I know you may not use $ in that context.
Your code is throwing php warnings because of the missing $. In this context the $ is used to set the attribute with the name in the var $subtype. Therefore $obj->$subtype must be used.
Is the pull request based off the lastest version?
What features have you added?
What bugs did you fix?
Is your code valid PSR-2?
Have you properly documented your code?
Has anything in your pull request already been fixed?
Anything else?
Optional things below
[] Added your name to the credits