- ArrayOf errors now catched in EntityTrait (event soon to be attached to it)

- Fixed some non-nullable defaulted to null vars in functions
- Added a new diff method for entities which skips nullable values if they are not defined.
This commit is contained in:
mcndave committed 2026-07-13 12:33:40 +00:00
1 parent 709ed63323
commit 13b7cf06f1
9 files changed
+52 -26

No files matched your search

+3 -2
View File
@@ -491,7 +491,7 @@ class MysqlQueryBuilder extends SqlQueryBuilder
}
}
public function getFragments(QueryFragmentInterface|array|\Stringable|string $fragment = null) : array
public function getFragments(QueryFragmentInterface|array|\Stringable|string|null $fragment = null) : array
{
return $fragment !== null ? array_filter($this->queryStack, fn($e) => is_a($e, $fragment, true) ) : $this->queryStack;
}
@@ -501,7 +501,7 @@ class MysqlQueryBuilder extends SqlQueryBuilder
return $this->render();
}
public function addParameter(mixed $value, string $key = null) : string
public function addParameter(mixed $value, ?string $key = null) : string
{
if ( $this->parent ?? false ) {
return $this->parent->addParameter($value, $key);
@@ -540,4 +540,5 @@ class MysqlQueryBuilder extends SqlQueryBuilder
return $next + 1;
}
}