Release 2.9.0 (#4526)
* added fix to work around bc break in new phpword version * fix phpoffice deprecations * mark unused option as deprecated * support for DateTimeInterface and DateTimeImmutable where possible * use TRUSTED_PROXIES setting - fixes #4533 * re-enable Kimai test in docker test build script (#4541) * bump dependencies
This commit is contained in:
@@ -14,7 +14,12 @@ use App\Model\ProjectStatistic;
|
||||
|
||||
final class ProjectStatisticEvent extends AbstractProjectEvent
|
||||
{
|
||||
public function __construct(Project $project, private ProjectStatistic $statistic, private ?\DateTime $begin = null, private ?\DateTime $end = null)
|
||||
public function __construct(
|
||||
Project $project,
|
||||
private readonly ProjectStatistic $statistic,
|
||||
private readonly ?\DateTimeInterface $begin = null,
|
||||
private readonly ?\DateTimeInterface $end = null
|
||||
)
|
||||
{
|
||||
parent::__construct($project);
|
||||
}
|
||||
@@ -24,12 +29,12 @@ final class ProjectStatisticEvent extends AbstractProjectEvent
|
||||
return $this->statistic;
|
||||
}
|
||||
|
||||
public function getBegin(): ?\DateTime
|
||||
public function getBegin(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->begin;
|
||||
}
|
||||
|
||||
public function getEnd(): ?\DateTime
|
||||
public function getEnd(): ?\DateTimeInterface
|
||||
{
|
||||
return $this->end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user