Skip to content

Wrong return type in stub for DateTime(Immutable)::createFromInterface() #8544

Closed
@ondrejmirtes

Description

@ondrejmirtes

Description

These methods behave as if they have static return type: https://3v4l.org/oBrlZ

But in the php-src stubs, they don't:

Originally reported here: phpstan/phpstan#7225

PHP Version

PHP 8.x

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