Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrong exception class in DateInterval::createFromDateString() #14569

@mpesari

Description

@mpesari

Bug report

The PHP documentation had wrong exception class name in DateInterval::createFromDateString() documentation:

It was changed in phpstan here:

Other references:

Code snippet that reproduces the problem

https://phpstan.org/r/3ca784af-7263-4e4d-88d9-2d70109bfd24

Expected output

PHPStan should detect that the thrown exception is DateMalformedIntervalStringException, and that it is not instanceof DateMalformedStringException.

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    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