You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UnknownPropertyException being thrown whenever a non-existent
property or method was requested caused a huge performance hit.
Instead the library now returns null by default. This only affects
method calls against the presenter which don't exist on the presenter or
underlying model - null will be returned instead of throwing an
exception.
The only downside to this is a method you intended to define on a
presenter but never did will not be brought to your attention with an
exception when attempting to access the missing method.
thrownewBadMethodCallException(sprintf('The `%s` method does not exist on the `%s` presenter or underlying `%s` model', $method, static::class, get_class($this->model)));
79
-
}
80
-
81
-
return$this->wrapInPresenter($value);
68
+
return$this->derive($method, $args);
82
69
}
83
70
84
71
/**
@@ -99,7 +86,18 @@ public function __isset($property) {
99
86
}
100
87
}
101
88
89
+
/**
90
+
* Derive the return value and wrap it in it's presenter if possible.
0 commit comments