Skip to content

Commit 61e90f9

Browse files
Merge branch '5.4' into 6.2
* 5.4: Migrate to `static` data providers using `rector/rector`
2 parents f525e7a + 56a94aa commit 61e90f9

7 files changed

+9
-9
lines changed

Tests/DebugClassLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class_exists('Test\\'.__NAMESPACE__.'\\'.$class, true);
140140
$this->assertSame($xError, $lastError);
141141
}
142142

143-
public function provideDeprecatedSuper(): array
143+
public static function provideDeprecatedSuper(): array
144144
{
145145
return [
146146
['DeprecatedInterfaceClass', 'DeprecatedInterface', 'implements'],

Tests/ErrorEnhancer/ClassNotFoundErrorEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testEnhance(string $originalMessage, string $enhancedMessage, $a
7272
$this->assertSame($expectedLine, $error->getLine());
7373
}
7474

75-
public function provideClassNotFoundData()
75+
public static function provideClassNotFoundData()
7676
{
7777
$autoloader = new ComposerClassLoader();
7878
$autoloader->add('Symfony\Component\ErrorHandler\Error\\', realpath(__DIR__.'/../../Error'));

Tests/ErrorEnhancer/UndefinedFunctionErrorEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testEnhance(string $originalMessage, string $enhancedMessage)
3434
$this->assertSame($expectedLine, $error->getLine());
3535
}
3636

37-
public function provideUndefinedFunctionData()
37+
public static function provideUndefinedFunctionData()
3838
{
3939
return [
4040
[

Tests/ErrorEnhancer/UndefinedMethodErrorEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testEnhance(string $originalMessage, string $enhancedMessage)
3333
$this->assertSame($expectedLine, $error->getLine());
3434
}
3535

36-
public function provideUndefinedMethodData()
36+
public static function provideUndefinedMethodData()
3737
{
3838
return [
3939
[

Tests/ErrorHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ public function testHandleException(string $expectedMessage, \Throwable $excepti
402402
}
403403
}
404404

405-
public function handleExceptionProvider(): array
405+
public static function handleExceptionProvider(): array
406406
{
407407
return [
408408
['Uncaught Exception: foo', new \Exception('foo')],
@@ -602,7 +602,7 @@ public function testErrorHandlerWhenLogging(bool $previousHandlerWasDefined, boo
602602
}
603603
}
604604

605-
public function errorHandlerWhenLoggingProvider(): iterable
605+
public static function errorHandlerWhenLoggingProvider(): iterable
606606
{
607607
foreach ([false, true] as $previousHandlerWasDefined) {
608608
foreach ([false, true] as $loggerSetsAnotherHandler) {

Tests/ErrorRenderer/HtmlErrorRendererTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testRender(\Throwable $exception, HtmlErrorRenderer $errorRender
2424
$this->assertStringMatchesFormat($expected, $errorRenderer->render($exception)->getAsString());
2525
}
2626

27-
public function getRenderData(): iterable
27+
public static function getRenderData(): iterable
2828
{
2929
$expectedDebug = <<<HTML
3030
<!-- Foo (500 Internal Server Error) -->

Tests/Exception/FlattenExceptionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,15 @@ public function testCreate()
226226
);
227227
}
228228

229-
public function flattenDataProvider(): array
229+
public static function flattenDataProvider(): array
230230
{
231231
return [
232232
[new \Exception('test', 123), 'Exception'],
233233
[new \Error('test', 123), 'Error'],
234234
];
235235
}
236236

237-
public function stringAndIntDataProvider(): array
237+
public static function stringAndIntDataProvider(): array
238238
{
239239
return [
240240
[new \Exception('test1', 123)],

0 commit comments

Comments
 (0)