[php-src] Issue #8544: Wrong return type in stub for DateTime(Immutable)::createFromInterface()

From: Date: Thu, 12 May 2022 13:55:53 +0000
Subject: [php-src] Issue #8544: Wrong return type in stub for DateTime(Immutable)::createFromInterface()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241471@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8544 Author: 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: * https://github.com/php/php-src/blob/d2bb59cc66e189c840ad9aa75976386ed85f49f2/ext/date/php_date.stub.php#L231 * https://github.com/php/php-src/blob/d2bb59cc66e189c840ad9aa75976386ed85f49f2/ext/date/php_date.stub.php#L409 Originally reported here: https://github.com/phpstan/phpstan/issues/7225 ### PHP Version PHP 8.x ### Operating System _No response_

« previous php.bugs (#241471) next »