Created
October 25, 2012 10:06
-
-
Save jamiefdhurst/3951786 to your computer and use it in GitHub Desktop.
PHP Gripe of the Day...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This should not require two lines... | |
$class = $this->_get_row_object($row); | |
$row = new $class; | |
// Surely this should work? But no... | |
$class = new {$this->_get_row_object($row)}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment