[php-src] PR #15157: Fix missing variance check for abstract set with asymmetric type
| From: | iluuu1994 | Date: | Mon, 29 Jul 2024 16:27:58 +0000 |
| Subject: | [php-src] PR #15157: Fix missing variance check for abstract set with asymmetric type | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27562@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15157
Author: iluuu1994
Closes GH-15140
The first commit is a cleanup and fix of a related issue, in preparation of the actual fix in the
second commit. The check is a bit out of place. I also thought about inheriting the abstract method
and removing it during inheritance when the check succeeds, but this would 1. require delaying the
abstract checks after variance checks, and 2. require dealing with freeing of potentially duplicated
static methods and the hooks list.
Anyway, I'll think about this again in some more detail.