diff --git a/src/Alias/Model.php b/src/Alias/Model.php index 0555b70..406c064 100644 --- a/src/Alias/Model.php +++ b/src/Alias/Model.php @@ -79,6 +79,9 @@ abstract class Model implements ModelInterface continue; } $p = strtolower(str_replace('get', '', $method->getName())); + if (!isset($this->{$p})) { + continue; + } $output[$p] = $this->{$method->getName()}(); } return $output;