mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +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:
@@ -36,7 +36,7 @@ class Section
|
||||
* @param float|null $origin Set the origin of the events in this section, use null to set their origin to their start time
|
||||
* @param bool $morePrecision If true, time is stored as float to keep the original microsecond precision
|
||||
*/
|
||||
public function __construct(float $origin = null, bool $morePrecision = false)
|
||||
public function __construct(?float $origin = null, bool $morePrecision = false)
|
||||
{
|
||||
$this->origin = $origin;
|
||||
$this->morePrecision = $morePrecision;
|
||||
@@ -115,7 +115,7 @@ class Section
|
||||
public function stopEvent(string $name): StopwatchEvent
|
||||
{
|
||||
if (!isset($this->events[$name])) {
|
||||
throw new \LogicException(sprintf('Event "%s" is not started.', $name));
|
||||
throw new \LogicException(\sprintf('Event "%s" is not started.', $name));
|
||||
}
|
||||
|
||||
return $this->events[$name]->stop();
|
||||
@@ -139,7 +139,7 @@ class Section
|
||||
public function getEvent(string $name): StopwatchEvent
|
||||
{
|
||||
if (!isset($this->events[$name])) {
|
||||
throw new \LogicException(sprintf('Event "%s" is not known.', $name));
|
||||
throw new \LogicException(\sprintf('Event "%s" is not known.', $name));
|
||||
}
|
||||
|
||||
return $this->events[$name];
|
||||
|
||||
Reference in New Issue
Block a user