Skip to content

Commit 5a4d017

Browse files
authored
Update Entity.php
1 parent 89de166 commit 5a4d017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function __get(string $key)
297297

298298
if(! isset($result) && ! property_exists($this, $key))
299299
{
300-
throw EntityException::forTryingToAccessNonExistentProperty($key, __CLASS__);
300+
throw EntityException::forTryingToAccessNonExistentProperty($key, get_called_class());
301301
}
302302

303303
return $result;

0 commit comments

Comments
 (0)