Skip to content

Commit 0d4d4df

Browse files
committed
[Attribute] Fix typo RequiresExtension -> RequiresPhpExtension
1 parent 15a2aab commit 0d4d4df

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

rules-tests/AnnotationsToAttributes/Rector/Class_/RequiresAnnotationWithValueToAttributeRector/Fixture/requires_fixture.php.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ use PHPUnit\Framework\TestCase;
4343
#[\PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily('Darwin')]
4444
#[\PHPUnit\Framework\Attributes\RequiresFunction('someFunction')]
4545
#[\PHPUnit\Framework\Attributes\RequiresMethod(\some\className::class, 'someMethod')]
46-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli')]
47-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli', '>= 8.3.0')]
46+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli')]
47+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli', '>= 8.3.0')]
4848
#[\PHPUnit\Framework\Attributes\RequiresSetting('date.timezone', 'Europe/Berlin')]
4949
class BarController extends TestCase
5050
{
@@ -54,8 +54,8 @@ class BarController extends TestCase
5454
#[\PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily('Darwin')]
5555
#[\PHPUnit\Framework\Attributes\RequiresFunction('someFunction')]
5656
#[\PHPUnit\Framework\Attributes\RequiresMethod(\some\className::class, 'someMethod')]
57-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli')]
58-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli', '>= 8.3.0')]
57+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli')]
58+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli', '>= 8.3.0')]
5959
#[\PHPUnit\Framework\Attributes\RequiresSetting('date.timezone', 'Europe/Berlin')]
6060
public function testWithRequires()
6161
{

rules/AnnotationsToAttributes/Rector/Class_/RequiresAnnotationWithValueToAttributeRector.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function test()
8383
#[\PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily('Darwin')]
8484
#[\PHPUnit\Framework\Attributes\RequiresFunction('someFunction')]
8585
#[\PHPUnit\Framework\Attributes\RequiresMethod(\some\className::class, 'someMethod')]
86-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli')]
87-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli', '>= 8.3.0')]
86+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli')]
87+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli', '>= 8.3.0')]
8888
#[\PHPUnit\Framework\Attributes\RequiresSetting('date.timezone', 'Europe/Berlin')]
8989
final class SomeTest extends TestCase
9090
{
@@ -95,8 +95,8 @@ final class SomeTest extends TestCase
9595
#[\PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily('Darwin')]
9696
#[\PHPUnit\Framework\Attributes\RequiresFunction('someFunction')]
9797
#[\PHPUnit\Framework\Attributes\RequiresMethod(\some\className::class, 'someMethod')]
98-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli')]
99-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli', '>= 8.3.0')]
98+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli')]
99+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli', '>= 8.3.0')]
100100
#[\PHPUnit\Framework\Attributes\RequiresSetting('date.timezone', 'Europe/Berlin')]
101101
public function test()
102102
{
@@ -194,7 +194,7 @@ private function createAttributeGroup(string $annotationValue): ?AttributeGroup
194194

195195
break;
196196
case 'extension':
197-
$attributeClass = 'PHPUnit\Framework\Attributes\RequiresExtension';
197+
$attributeClass = 'PHPUnit\Framework\Attributes\RequiresPhpExtension';
198198
$attributeValue = explode(' ', (string) $attributeValue, 2);
199199
break;
200200
case 'setting':

tests/AnnotationsToAttributes/Fixture/requires_fixture.php.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ use PHPUnit\Framework\TestCase;
4343
#[\PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily('Darwin')]
4444
#[\PHPUnit\Framework\Attributes\RequiresFunction('someFunction')]
4545
#[\PHPUnit\Framework\Attributes\RequiresMethod(\some\className::class, 'someMethod')]
46-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli')]
47-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli', '>= 8.3.0')]
46+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli')]
47+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli', '>= 8.3.0')]
4848
#[\PHPUnit\Framework\Attributes\RequiresSetting('date.timezone', 'Europe/Berlin')]
4949
class BarController extends TestCase
5050
{
@@ -54,8 +54,8 @@ class BarController extends TestCase
5454
#[\PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily('Darwin')]
5555
#[\PHPUnit\Framework\Attributes\RequiresFunction('someFunction')]
5656
#[\PHPUnit\Framework\Attributes\RequiresMethod(\some\className::class, 'someMethod')]
57-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli')]
58-
#[\PHPUnit\Framework\Attributes\RequiresExtension('mysqli', '>= 8.3.0')]
57+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli')]
58+
#[\PHPUnit\Framework\Attributes\RequiresPhpExtension('mysqli', '>= 8.3.0')]
5959
#[\PHPUnit\Framework\Attributes\RequiresSetting('date.timezone', 'Europe/Berlin')]
6060
public function testWithRequires()
6161
{

0 commit comments

Comments
 (0)