From 336e3dbd3f82b69fae7be651e56d6f29e4a46f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 7 May 2023 01:14:01 +0200 Subject: [PATCH] call static instead of self in Model --- src/PersistentData/Model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PersistentData/Model/Model.php b/src/PersistentData/Model/Model.php index 23b2840..c5f566c 100644 --- a/src/PersistentData/Model/Model.php +++ b/src/PersistentData/Model/Model.php @@ -41,7 +41,7 @@ abstract class Model { $array = []; - foreach (self::getFields() as $key) { + foreach (static::getFields() as $key) { $method = 'get' . str_replace('_', '', ucwords($key, '_')); if (method_exists($this, $method)) {