Adds notes explaining the fix
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user