[php-src] PR #17306: Add support for using final properties in stubs

From: Date: Mon, 30 Dec 2024 19:40:57 +0000
Subject: [php-src] PR #17306: Add support for using final properties in stubs
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30172@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17306 Author: kocsismate Generated property in the arginfo file: ``` zval property_finalProp_default_value; ZVAL_UNDEF(&property_finalProp_default_value); zend_string *property_finalProp_name = zend_string_init("finalProp", sizeof("finalProp") - 1, 1); #if (PHP_VERSION_ID >= 80400) zend_declare_typed_property(class_entry, property_finalProp_name, &property_finalProp_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); #elif (PHP_VERSION_ID >= 80000) zend_declare_typed_property(class_entry, property_finalProp_name, &property_finalProp_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG)); #endif zend_string_release(property_finalProp_name); ```

« previous php.git-pulls (#30172) next »