MDL-19698 deprecated assign new by ref in simpletest lib

This commit is contained in:
Petr Skoda
2010-07-19 08:53:16 +00:00
parent 0ad09db03b
commit 0a8f8a65cd
21 changed files with 68 additions and 69 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ class SimpleTestContext {
*/
function &get($resource) {
if (! isset($this->_resources[$resource])) {
$this->_resources[$resource] = &new $resource();
$this->_resources[$resource] = new $resource();
}
return $this->_resources[$resource];
}