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:
parent
171b01ba9d
commit
376f7ba0b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue