]> granicus.if.org Git - php/commit
Integrate property types with variance system
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 17 Oct 2019 11:01:02 +0000 (13:01 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 17 Oct 2019 11:37:04 +0000 (13:37 +0200)
commitcf85eb24685ebf7eea3ad018d0674b22730d6542
tree43dc58797fd38e8d6e391b8a1271433a5337f9d8
parent8b160f530c91c07f441ac266b552b08ebf0e27e4
Integrate property types with variance system

Property types are invariant, but may still have to load classes in
order to check for class aliases. This class loading should follow
the same rules as all other variance checks, rather than just
loading unconditionally.

This change integrates property type invariance checks into the
variance system as a new obligation type, and prevent early binding
if the type check cannot be performed.
Zend/zend_inheritance.c