mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 14:58:43 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user