Skip to content

Commit de75ca7

Browse files
committed
Fix failing test in PHP >= 8.1
1 parent f0c5cd3 commit de75ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/FakerStubResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function resolve(): ?string
8686
$mn = $config->modelNamespace;
8787
return '$faker->randomElement(\\' . $mn
8888
. ($mn ? '\\' : '')
89-
. ucfirst($this->attribute->reference) . '::find()->select("id")->column())';
89+
. ucfirst((string) $this->attribute->reference) . '::find()->select("id")->column())';
9090
}
9191

9292
$limits = $this->attribute->limits;

0 commit comments

Comments
 (0)