@@ -8,7 +8,7 @@ class StaticInitializerTest extends EmittingTest {
88
99 #[Test]
1010 public function static_initializer_called () {
11- $ t = $ this ->type ('class <T> {
11+ $ t = $ this ->type ('class %T {
1212 private static $initialized= false;
1313
1414 static {
@@ -20,7 +20,7 @@ public function static_initializer_called() {
2020
2121 #[Test]
2222 public function can_have_multiple_blocks () {
23- $ t = $ this ->type ('class <T> {
23+ $ t = $ this ->type ('class %T {
2424 private static $initialized= [];
2525
2626 static {
@@ -35,21 +35,21 @@ public function can_have_multiple_blocks() {
3535
3636 #[Test, Expect(class: Errors::class, message: '/Expected static modifier, have none in static initializer/ ' )]
3737 public function block_without_modifier () {
38- $ this ->type ('class <T> {
38+ $ this ->type ('class %T {
3939 { }
4040 } ' );
4141 }
4242
4343 #[Test, Expect(class: Errors::class, message: '/Expected static modifier, have final in static initializer/ ' )]
4444 public function block_with_incorrect_modifier () {
45- $ this ->type ('class <T> {
45+ $ this ->type ('class %T {
4646 final { }
4747 } ' );
4848 }
4949
5050 #[Test, Expect(class: Errors::class, message: '/Cannot redeclare method __static\(\)/ ' )]
5151 public function cannot_declare_static_function () {
52- $ this ->type ('class <T> {
52+ $ this ->type ('class %T {
5353 static { }
5454 static function __static() { }
5555 } ' );
0 commit comments