Skip to content

Commit 77c8a6e

Browse files
ArshidArshid
authored andcommitted
[php 8.3] Add json_validate rule
1 parent f9ad159 commit 77c8a6e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rules/Php83/Rector/BooleanAnd/JsonValidateRector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protected function validateArgs(array $args, array $positions): bool
183183
if ($depth <= 0) {
184184
return false;
185185
}
186-
if ($depth > static::JSON_MAX_DEPTH) {
186+
if ($depth > self::JSON_MAX_DEPTH) {
187187
return false;
188188
}
189189
}
@@ -205,7 +205,7 @@ private function resolveNamedPositions(array $args): array
205205
continue;
206206
}
207207

208-
if (! $this->isNames($arg->name, static::ARG_NAMES)) {
208+
if (! $this->isNames($arg->name, self::ARG_NAMES)) {
209209
continue;
210210
}
211211

@@ -234,7 +234,7 @@ private function resolveOriginalPositions(FuncCall $funcCall, Scope $scope): arr
234234
$positions = [];
235235

236236
foreach ($parametersAcceptor->getParameters() as $position => $parameterReflection) {
237-
if (in_array($parameterReflection->getName(), static::ARG_NAMES, true)) {
237+
if (in_array($parameterReflection->getName(), self::ARG_NAMES, true)) {
238238
$positions[] = $position;
239239
}
240240
}

0 commit comments

Comments
 (0)