Adds notes explaining the fix

This commit is contained in:
mrcasual
2017-07-17 12:15:39 -04:00
committed by GitHub
parent a4dad46fb7
commit 5f74f34cba

View File

@ -170,6 +170,11 @@ class Model extends \Sudzy\ValidModel {
return static::whereNotNull('deleted_at');
}
/**
* PHP 5.3 fix for incorrectly returned model results when using asArray() function.
* Jira reference: https://goo.gl/UZaMj5
* TODO: remove after phasing out PHP 5.3 support
*/
function asArray() {
return call_user_func_array('parent::as_array', func_get_args());
}
@ -184,4 +189,4 @@ class Model extends \Sudzy\ValidModel {
throw new \Exception($e->getMessage());
}
}
}
}