Skip to content

DateInterval::createFromDateString does not throw non-relative items are present #8458

Closed
@derickr

Description

@derickr

Description

The following code:

<?php
$d = DateInterval::createFromDateString('next weekday 15:30');
?>

Resulted in no warning.

But I expected a warning telling me that the 15:30 was going to be ignored.

PHP Version

PHP 8.2.0-dev

Operating System

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions