SSilence / php-imap-client

a easy solution for simple IMAP email access in php
MIT License
268 stars 136 forks source link

Last guy fucked up #192

Closed DookiEfromMoon closed 6 years ago

DookiEfromMoon commented 6 years ago

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

mattparksjr commented 6 years ago

Because this is a class instance variable as far as I know you may not use $ in that context.

DookiEfromMoon commented 6 years ago

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.