[php-src] PR #21948: Do not emit ZEND_VERIFY_RETURN_TYPE when returning $this with static return type

From: Date: Mon, 04 May 2026 20:17:59 +0000
Subject: [php-src] PR #21948: Do not emit ZEND_VERIFY_RETURN_TYPE when returning $this with static return type
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36021@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21948 Author: Girgias Not sure if this is the most sensible approach, I would expect this to be profitable. Maybe we can extend this to type checks of instances of the current class so that it covers self types that are resolved at compile time. Maybe the test should also be more somewhere more appropriate?

« previous php.git-pulls (#36021) next »