N°8910 - Upgrade Symfony packages (#811)

This commit is contained in:
Benjamin Dalsass
2026-02-23 06:54:26 +01:00
committed by GitHub
parent b91e6c384a
commit 4853ca444e
224 changed files with 4758 additions and 1778 deletions

View File

@@ -101,23 +101,23 @@ class ClassExistenceResource implements SelfCheckingResourceInterface
return $this->exists[0] xor !$exists[0];
}
/**
* @internal
*/
public function __sleep(): array
public function __serialize(): array
{
if (null === $this->exists) {
$this->isFresh(0);
}
return ['resource', 'exists'];
return [
'resource' => $this->resource,
'exists' => $this->exists,
];
}
/**
* @internal
*/
public function __wakeup(): void
public function __unserialize(array $data): void
{
$this->resource = array_shift($data);
$this->exists = array_shift($data);
if (\is_bool($this->exists)) {
$this->exists = [$this->exists, null];
}