Skip to content

Commit

Permalink
Use createobject
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Sep 7, 2023
1 parent 959ebc4 commit 7b6339b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static function envConfig(object|string $class, ?string $envPrefix = null

/** @var ?Model $model */
$model = $isModel
? ($class instanceof Model ? $class : new $class())
? ($class instanceof Model ? $class : Craft::createObject($class))
: null;

$properties = $model
Expand Down

0 comments on commit 7b6339b

Please sign in to comment.