Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.
This repository was archived by the owner on May 8, 2026. It is now read-only.

Invalid call to DateTime constructor #49

@oliverrahner

Description

@oliverrahner

DateTime constructor must not be called with null for the $datetime parameter: https://www.php.net/manual/en/datetime.construct.php

$d = new DateTime(null, new DateTimeZone('UTC'));

Replacing null with "now" should do the trick.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions