[php-src] PR #11460: Resolve relative class type at compile time

From: Date: Fri, 16 Jun 2023 04:28:05 +0000
Subject: [php-src] PR #11460: Resolve relative class type at compile time
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-22743@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11460 Author: Girgias The motivation for this is to potentially add methods to ReflectionType which can check if it is co/contra-variant to another ReflectionType, however `self, parent, and static` are problematic in that those types would usually be resolved at run time. However, in most cases we can resolve at compile time `self and parent`, the exceptions being traits and unbound closures. `static` is resolvable if it comes from an instance or a class, as it will resolve to that name, leaving interfaces to be an issue. Commits are kinda a mess as it's somewhat W.I.P. as I might still need to tweak the redundancy check for DNF types.

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