Adds notes explaining the fix
This commit is contained in:
@ -170,6 +170,11 @@ class Model extends \Sudzy\ValidModel {
|
|||||||
return static::whereNotNull('deleted_at');
|
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() {
|
function asArray() {
|
||||||
return call_user_func_array('parent::as_array', func_get_args());
|
return call_user_func_array('parent::as_array', func_get_args());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user