call static instead of self in Model
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
bence committed 2023-05-07 01:51:20 +02:00
1 parent 1288a33ff6
commit 6989e1dcf3
1 file changed
+1 -1
+1 -1
View File
@@ -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)) {