We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89de166 commit 5a4d017Copy full SHA for 5a4d017
system/Entity.php
@@ -297,7 +297,7 @@ public function __get(string $key)
297
298
if(! isset($result) && ! property_exists($this, $key))
299
{
300
- throw EntityException::forTryingToAccessNonExistentProperty($key, __CLASS__);
+ throw EntityException::forTryingToAccessNonExistentProperty($key, get_called_class());
301
}
302
303
return $result;
0 commit comments