From 5f74f34cbadfc7cacdf32b7bc7e43f5a58dc0f37 Mon Sep 17 00:00:00 2001 From: mrcasual Date: Mon, 17 Jul 2017 12:15:39 -0400 Subject: [PATCH] Adds notes explaining the fix --- lib/Models/Model.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Models/Model.php b/lib/Models/Model.php index fc95bfa216..0809cf7bd6 100644 --- a/lib/Models/Model.php +++ b/lib/Models/Model.php @@ -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()); } } -} \ No newline at end of file +}