1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Fix variable name

This commit is contained in:
lukinovec 2023-06-19 14:09:40 +02:00
parent 171b01ba9d
commit 376f7ba0b0

View file

@ -35,7 +35,7 @@ trait DealsWithModels
// Skip non-instantiable classes we only care about models, and those are instantiable
if ((new ReflectionClass($fullClassName))->getConstructor()?->getNumberOfRequiredParameters() === 0) {
$object = new $className;
$object = new $fullClassName;
if ($object instanceof Model) {
return $object;