diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-03 14:49:10 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-11-03 14:49:10 +0100 |
commit | 7e5531755812a46841fc24ade5f71aefde69cf96 (patch) | |
tree | 326ac7ef23d33dbac0eec634b9556436729678b4 /ext | |
parent | ee934f8245b58e1a557ed7b3f303f2d9d7cd23a6 (diff) | |
download | php-git-7e5531755812a46841fc24ade5f71aefde69cf96.tar.gz |
Allow unlinked classes when performing in_compilation variance check
As preloading runs in in_compilation mode, we also need to allow
use of unlinked classes in lookup_class().
Diffstat (limited to 'ext')
-rw-r--r-- | ext/opcache/tests/preload_variance.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/tests/preload_variance.inc b/ext/opcache/tests/preload_variance.inc index eae3cd7152..85e569f345 100644 --- a/ext/opcache/tests/preload_variance.inc +++ b/ext/opcache/tests/preload_variance.inc @@ -14,11 +14,13 @@ class C extends Z { public function method($a): self {} public function method2($a): C {} public function method3($a): object {} + public function method4(D $a) {} } class D extends C { public function method($a): self {} public function method2($a): D {} public function method3($a): stdClass {} + public function method4(C $a) {} } // Works. |