Skip to content

Commit b3b67a0

Browse files
committed
Disallow applying both @strict-properties and #[\AllowDynamicProperties]
1 parent 754f2ad commit b3b67a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/gen_stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3314,6 +3314,10 @@ function parseClass(
33143314
}
33153315
}
33163316

3317+
if ($isStrictProperties && $allowsDynamicProperties) {
3318+
throw new Exception("A class may not have '@strict-properties' and '#[\\AllowDynamicProperties]' at the same time.");
3319+
}
3320+
33173321
$extends = [];
33183322
$implements = [];
33193323

0 commit comments

Comments
 (0)