mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Micro optimization: readonly properties always have a type
This commit is contained in:
parent
afd8695a22
commit
574e531127
1 changed files with 3 additions and 3 deletions
|
@ -4222,10 +4222,10 @@ ZEND_API zend_property_info *zend_declare_typed_property(zend_class_entry *ce, z
|
|||
|
||||
if (ZEND_TYPE_IS_SET(type)) {
|
||||
ce->ce_flags |= ZEND_ACC_HAS_TYPE_HINTS;
|
||||
}
|
||||
|
||||
if (access_type & ZEND_ACC_READONLY) {
|
||||
ce->ce_flags |= ZEND_ACC_HAS_READONLY_PROPS;
|
||||
if (access_type & ZEND_ACC_READONLY) {
|
||||
ce->ce_flags |= ZEND_ACC_HAS_READONLY_PROPS;
|
||||
}
|
||||
}
|
||||
|
||||
if (ce->type == ZEND_INTERNAL_CLASS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue