diff --git a/stubs/CoreGenericClasses.phpstub b/stubs/CoreGenericClasses.phpstub index 0dae5ef34d2..168572e7de7 100644 --- a/stubs/CoreGenericClasses.phpstub +++ b/stubs/CoreGenericClasses.phpstub @@ -501,3 +501,15 @@ final class ReturnTypeWillChange { public function __construct() {} } + +#[Attribute] +final class SensitiveParameter +{ + public function __construct() {} +} + +#[Attribute] +final class AllowDynamicProperties +{ + public function __construct() {} +} diff --git a/tests/AttributeTest.php b/tests/AttributeTest.php index efffdbad4de..b77b9d6aa67 100644 --- a/tests/AttributeTest.php +++ b/tests/AttributeTest.php @@ -249,6 +249,32 @@ public function getIterator() [], '8.1' ], + 'allowDynamicProperties' => [ + ' [ + ' [ '