@@ -29,7 +29,7 @@ public function testSetterGetter(): void
2929 $ context = $ this ->createMock (ContextInterface::class);
3030
3131 $ category = new class extends Category {
32- public function getId ()
32+ public function getId (): int
3333 {
3434 return 42 ;
3535 }
@@ -67,14 +67,14 @@ public function getId()
6767 public function testParent (): void
6868 {
6969 $ parent = new class extends Category {
70- public function getId ()
70+ public function getId (): int
7171 {
7272 return 33 ;
7373 }
7474 };
7575
7676 $ category = new class extends Category {
77- public function getId ()
77+ public function getId (): int
7878 {
7979 return 42 ;
8080 }
@@ -87,19 +87,19 @@ public function getId()
8787 public function testChildren (): void
8888 {
8989 $ cat1 = new class extends Category {
90- public function getId ()
90+ public function getId (): int
9191 {
9292 return 1 ;
9393 }
9494 };
9595 $ cat2 = new class extends Category {
96- public function getId ()
96+ public function getId (): int
9797 {
9898 return 2 ;
9999 }
100100 };
101101 $ cat3 = new class extends Category {
102- public function getId ()
102+ public function getId (): int
103103 {
104104 return 3 ;
105105 }
@@ -108,7 +108,7 @@ public function getId()
108108 $ context = $ this ->createMock (ContextInterface::class);
109109
110110 $ category = new class extends Category {
111- public function getId ()
111+ public function getId (): int
112112 {
113113 return 42 ;
114114 }
@@ -136,7 +136,7 @@ public function getId()
136136 public function testPrePersist (): void
137137 {
138138 $ category = new class extends Category {
139- public function getId ()
139+ public function getId (): int
140140 {
141141 return 42 ;
142142 }
@@ -150,7 +150,7 @@ public function getId()
150150 public function testPreUpdate (): void
151151 {
152152 $ category = new class extends Category {
153- public function getId ()
153+ public function getId (): int
154154 {
155155 return 42 ;
156156 }
0 commit comments