User tests: Successful: Unsuccessful:
Removed redundant Else statement from __get method
I don't think trigger_error causes a return so you'd still end up getting back $this->type regardless of the requested value in this case. So it should probably be the if statement like it was before and the trigger_error be after the if statement.
$this->type
I don't think trigger_error causes a return so you'd still end up getting back
$this->type
regardless of the requested value in this case. So it should probably be the if statement like it was before and the trigger_error be after the if statement.