Skip to content

Commit d008737

Browse files
committed
[RELEASE] Version 12.6.2
Related: https://projekte.in2code.de/issues/74566
2 parents 6a7a40d + b461762 commit d008737

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# In2publish Core Change Log
22

3+
12.6.2:
4+
- [META] Set the EM conf version number to 12.6.2
5+
- [DOCS] Update Changelog.md
6+
- [BUGFIX] Fix type errors in StopwatchAlreadyStartedException
7+
38
12.6.1:
49
- [META] Set the EM conf version number to 12.6.1
510
- [DOCS] Update Changelog.md

Classes/Features/MetricsAndDebug/Stopwatch/Exception/StopwatchAlreadyStartedException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class StopwatchAlreadyStartedException extends In2publishCoreException
1919
public const CODE = 1658152739;
2020
private float $firstStart;
2121

22-
public function __construct(float $firstStart, Throwable $previous = null)
22+
public function __construct(float $firstStart, ?Throwable $previous = null)
2323
{
2424
$this->firstStart = $firstStart;
25-
$readableDate = DateTime::createFromFormat('U.u', $firstStart)->format('Y-m-d H:i:s.u');
25+
$readableDate = DateTime::createFromFormat('U.u', (string)$firstStart)->format('Y-m-d H:i:s.u');
2626
parent::__construct(sprintf(self::MESSAGE, $readableDate, $firstStart), self::CODE, $previous);
2727
}
2828

Classes/Features/MetricsAndDebug/Stopwatch/Exception/StopwatchWasNotStartedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class StopwatchWasNotStartedException extends In2publishCoreException
1515
private const MESSAGE = 'The stopwatch was not started';
1616
public const CODE = 1658152782;
1717

18-
public function __construct(Throwable $previous = null)
18+
public function __construct(?Throwable $previous = null)
1919
{
2020
parent::__construct(self::MESSAGE, self::CODE, $previous);
2121
}

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'title' => 'in2publish Core',
1010
'description' => 'Content publishing extension to connect stage and production server',
1111
'category' => 'plugin',
12-
'version' => '12.6.1',
12+
'version' => '12.6.2',
1313
'state' => 'stable',
1414
'clearCacheOnLoad' => true,
1515
'author' => 'Alex Kellner, Oliver Eglseder, Thomas Scheibitz, Stefan Busemann',

0 commit comments

Comments
 (0)