@@ -21,7 +21,7 @@ class DeprecationTest extends TestCase
21
21
{
22
22
private static $ vendorDir ;
23
23
24
- private static function getVendorDir (): string
24
+ private static function getVendorDir ()
25
25
{
26
26
if (null !== self ::$ vendorDir ) {
27
27
return self ::$ vendorDir ;
@@ -148,7 +148,7 @@ public function testItTakesMutesDeprecationFromPhpUnitFiles()
148
148
$ this ->assertTrue ($ deprecation ->isMuted ());
149
149
}
150
150
151
- public function providerGetTypeDetectsSelf (): array
151
+ public function providerGetTypeDetectsSelf ()
152
152
{
153
153
foreach (get_declared_classes () as $ class ) {
154
154
if ('C ' === $ class [0 ] && 0 === strpos ($ class , 'ComposerAutoloaderInit ' )) {
@@ -187,7 +187,7 @@ public function providerGetTypeDetectsSelf(): array
187
187
/**
188
188
* @dataProvider providerGetTypeDetectsSelf
189
189
*/
190
- public function testGetTypeDetectsSelf (string $ expectedType , string $ message , string $ traceClass , string $ file ): void
190
+ public function testGetTypeDetectsSelf (string $ expectedType , string $ message , string $ traceClass , string $ file )
191
191
{
192
192
$ trace = [
193
193
['class ' => 'MyClass1 ' , 'function ' => 'myMethod ' ],
@@ -197,7 +197,7 @@ public function testGetTypeDetectsSelf(string $expectedType, string $message, st
197
197
$ this ->assertSame ($ expectedType , $ deprecation ->getType ());
198
198
}
199
199
200
- public function providerGetTypeUsesRightTrace (): array
200
+ public function providerGetTypeUsesRightTrace ()
201
201
{
202
202
$ vendorDir = self ::getVendorDir ();
203
203
@@ -243,7 +243,7 @@ public function providerGetTypeUsesRightTrace(): array
243
243
/**
244
244
* @dataProvider providerGetTypeUsesRightTrace
245
245
*/
246
- public function testGetTypeUsesRightTrace (string $ expectedType , string $ message , array $ trace ): void
246
+ public function testGetTypeUsesRightTrace (string $ expectedType , string $ message , array $ trace )
247
247
{
248
248
$ deprecation = new Deprecation (
249
249
$ message ,
@@ -257,12 +257,12 @@ public function testGetTypeUsesRightTrace(string $expectedType, string $message,
257
257
* This method is here to simulate the extra level from the piece of code
258
258
* triggering an error to the error handler.
259
259
*/
260
- public function debugBacktrace (): array
260
+ public function debugBacktrace ()
261
261
{
262
262
return debug_backtrace ();
263
263
}
264
264
265
- private static function removeDir ($ dir ): void
265
+ private static function removeDir ($ dir )
266
266
{
267
267
$ files = glob ($ dir .'/* ' );
268
268
foreach ($ files as $ file ) {
@@ -275,7 +275,7 @@ private static function removeDir($dir): void
275
275
rmdir ($ dir );
276
276
}
277
277
278
- public static function tearDownAfterClass (): void
278
+ public static function tearDownAfterClass ()
279
279
{
280
280
self ::removeDir (self ::getVendorDir ().'/myfakevendor ' );
281
281
}
0 commit comments