Skip to content

Commit 11adaf2

Browse files
committed
Fix failing tests in PHP >= 8
1 parent e91e199 commit 11adaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/AttributeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ protected function resolvePropertyRef(PropertySchema $property, Attribute $attri
493493
public static function relationName(string $propertyName, ?string $fkColumnName): string
494494
{
495495
$relationName = $propertyName;
496-
if (!str_contains($fkColumnName, '_')) {
496+
if (!str_contains((string) $fkColumnName, '_')) {
497497
$relationName = strtolower($fkColumnName) === strtolower($relationName) ? $relationName . 'Rel' : $relationName;
498498
}
499499
return $relationName;

0 commit comments

Comments
 (0)