Skip to content

Commit 6c975d8

Browse files
ArshidArshid
authored andcommitted
[php 8.3] Add json_validate rule
1 parent cd85f76 commit 6c975d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rules-tests/Php83/Rector/BooleanAnd/JsonValidateRector/config/configured_rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Rector\ValueObject\PhpVersion;
88

99
return static function (RectorConfig $rectorConfig): void {
10-
$rectorConfig->phpVersion(PhpVersion::PHP_80);
10+
$rectorConfig->phpVersion(PhpVersion::PHP_83);
1111

1212
$rectorConfig->rule(JsonValidateRector::class);
1313
};

rules/Php83/Rector/BooleanAnd/JsonValidateRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function refactor(Node $node): ?Node
8484

8585
public function providePolyfillPackage(): string
8686
{
87-
return PolyfillPackage::PHP_80;
87+
return PolyfillPackage::PHP_83;
8888
}
8989

9090
public function matchJsonValidateArg(BooleanAnd $booleanAnd): ?FuncCall

0 commit comments

Comments
 (0)