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

@@ -61,12 +61,12 @@ class Stopwatch implements ResetInterface
*
* @throws \LogicException When the section to re-open is not reachable
*/
public function openSection(string $id = null)
public function openSection(?string $id = null)
{
$current = end($this->activeSections);
if (null !== $id && null === $current->get($id)) {
throw new \LogicException(sprintf('The section "%s" has been started at an other level and cannot be opened.', $id));
throw new \LogicException(\sprintf('The section "%s" has been started at an other level and cannot be opened.', $id));
}
$this->start('__section__.child', 'section');
@@ -100,7 +100,7 @@ class Stopwatch implements ResetInterface
/**
* Starts an event.
*/
public function start(string $name, string $category = null): StopwatchEvent
public function start(string $name, ?string $category = null): StopwatchEvent
{
return end($this->activeSections)->startEvent($name, $category);
}