3 Commits
Author SHA1 Message Date
Dave Mc Nicoll 9855a00451 - Some more fixes for PHP8.5+ 2026-10-23 14:48:29 +00:00
Dave Mc Nicoll 9507a1e596 - fixed a changed interface execute() event 2026-10-22 19:43:31 +00:00
mcndave f197443871 - Fixed setTime return value 2026-10-22 17:28:00 +00:00
5 changed files with 9 additions and 9 deletions

No files matched your search

+1 -1
View File
@@ -79,7 +79,7 @@ class MySQL implements AdapterInterface, MigrateInterface, SqlAdapterInterface {
$pdo->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false);
$pdo->setAttribute(\PDO::ATTR_AUTOCOMMIT, false);
$pdo->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
$pdo->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
$pdo->setAttribute(\Pdo\Mysql::ATTR_USE_BUFFERED_QUERY, false);
}
catch(\PDOException $ex){
throw $ex;
+1 -1
View File
@@ -59,7 +59,7 @@ trait CacheTrait
$this->eventRegister(new class($this->cache, $this->entityCacheKey()) implements Event\Query\Update {
use Cache\CacheEventTrait;
public function execute(RepositoryInterface $repository, object|array $entity, ?array $dataset = null, bool $replace = false): void
public function execute(RepositoryInterface $repository, object|array $entity, array $dataset, array $diff, bool $replace = false): void
{
$this->purgeCache();
}
+2 -2
View File
@@ -26,7 +26,7 @@ trait DatetimeTrait
return $obj;
}
public function setTime($hour, $minute, $second = 0, $microsecond = 0) : \DateTimeInterface
public function setTime($hour, $minute, $second = 0, $microsecond = 0) : \DateTime
{
$fromParent = parent::setTime($hour, $minute, $second, $microsecond);
@@ -65,4 +65,4 @@ trait DatetimeTrait
{
return $this;
}
}
}
+1 -1
View File
@@ -322,7 +322,7 @@ class EntityCollection extends \ArrayObject implements \JsonSerializable {
case is_string($value):
$value = (string) $value;
$list[$key] = $item->$value;
$list[(string) $key] = $item->$value;
break;
}
}
+4 -4
View File
@@ -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;
}
}
}