]> granicus.if.org Git - php/commit
Don't autoload when checking property types
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 23 Oct 2019 10:19:33 +0000 (12:19 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 23 Oct 2019 10:21:30 +0000 (12:21 +0200)
commitf8413887816c4cecda75e6ae59dc3d1a74bb4f77
tree0110dc425e392ce567ce68c4884ead277773060d
parent3157173b28735ebd8f1bd620c8672558d7b70c74
Don't autoload when checking property types

Noticed while working on union types: We do not load argument and
return types during type checks, but we do load property types.

I'm normalizing the behavior towards the existing status quo (not
loading), though we may consider loading everywhere (all types,
and instanceof) in order to properly support class aliases.
Zend/tests/type_declarations/typed_properties_class_loading.phpt [new file with mode: 0644]
Zend/zend_execute.c