N°8834 - Add compatibility with PHP 8.4 (#819)

* N°8834 - Add compatibility with PHP 8.4

* Rollback of scssphp/scssphp version upgrade due to compilation error
This commit is contained in:
Lenaick
2026-02-26 10:36:32 +01:00
committed by GitHub
parent d4821b7edc
commit fc967c06ce
961 changed files with 12298 additions and 7130 deletions

View File

@@ -65,10 +65,13 @@ class DefinitionErrorExceptionPass extends AbstractRecursivePass
}
if ($value instanceof Reference && $this->currentId !== $targetId = (string) $value) {
if (ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE === $value->getInvalidBehavior()) {
$this->sourceReferences[$targetId][$this->currentId] ??= true;
if (
ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE === $value->getInvalidBehavior()
|| ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE === $value->getInvalidBehavior()
) {
$this->sourceReferences[$targetId][$this->currentId ?? ''] ??= true;
} else {
$this->sourceReferences[$targetId][$this->currentId] = false;
$this->sourceReferences[$targetId][$this->currentId ?? ''] = false;
}
return $value;
@@ -78,7 +81,7 @@ class DefinitionErrorExceptionPass extends AbstractRecursivePass
return parent::processValue($value, $isRoot);
}
$this->erroredDefinitions[$this->currentId] = $value;
$this->erroredDefinitions[$this->currentId ?? ''] = $value;
return parent::processValue($value);
}