- Some more fixes for PHP8.5+
This commit is contained in:
1 parent
9507a1e596
commit
9855a00451
3 files changed
+6
-6
No files matched your search
@@ -30,7 +30,7 @@ trait JoinBuilderTrait
|
||||
|
||||
$fields = (array) $fields;
|
||||
|
||||
usort($fields, fn($e1, $e2) => str_contains($e1, '.') <=> str_contains($e2, '.'));
|
||||
usort($fields, fn($e1, $e2) => str_contains((string) $e1, '.') <=> str_contains((string) $e2, '.'));
|
||||
|
||||
# @TODO Apply fff annotation to this too !
|
||||
foreach(array_filter($fields, fn($e) => $e && ! isset($this->joined[$e]) ) as $item) {
|
||||
@@ -127,7 +127,7 @@ trait JoinBuilderTrait
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function joinFieldObject(mixed $field, string $entityClass, string $alias = null) : \Stringable
|
||||
protected function joinFieldObject(mixed $field, string $entityClass, ?string $alias = null) : \Stringable
|
||||
{
|
||||
if ( ! is_object($field) ) {
|
||||
return $entityClass::field($field, $alias);
|
||||
@@ -138,7 +138,7 @@ trait JoinBuilderTrait
|
||||
}
|
||||
|
||||
|
||||
protected function joinFieldValue(mixed $value, string $alias = null) : mixed
|
||||
protected function joinFieldValue(mixed $value, ?string $alias = null) : mixed
|
||||
{
|
||||
if ( $value instanceof EntityField ) {
|
||||
$value = clone $value;
|
||||
@@ -150,4 +150,4 @@ trait JoinBuilderTrait
|
||||
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user