Skip to content

Commit 4f02031

Browse files
committed
tests: allow dynamic properties
1 parent 4242098 commit 4f02031

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/024.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class Obj {
3535
}
3636
}
3737

38+
#[AllowDynamicProperties()]
3839
class Obj2 {
3940
public $aa;
4041
protected $bb;

tests/bug013.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if (!extension_loaded("msgpack")) {
88
--FILE--
99
<?php
1010

11+
#[AllowDynamicProperties()]
1112
class magicClass {
1213
public function __set($name, $value) {
1314
echo 'Called __set' . PHP_EOL;

0 commit comments

Comments
 (0)