php-src/Zend/zend_attributes.stub.php
Nikita Popov 902d64390e Deprecate implicit dynamic properties
Writing to a proprety that hasn't been declared is deprecated,
unless the class uses the #[AllowDynamicProperties] attribute or
defines __get()/__set().

RFC: https://wiki.php.net/rfc/deprecate_dynamic_properties
2021-11-26 14:10:11 +01:00

21 lines
312 B
PHP

<?php
/** @generate-class-entries */
final class Attribute
{
public int $flags;
public function __construct(int $flags = Attribute::TARGET_ALL) {}
}
final class ReturnTypeWillChange
{
public function __construct() {}
}
final class AllowDynamicProperties
{
public function __construct() {}
}