Skip to content

Commit

Permalink
Revert "fix: class_exists calls without argument (#6227)" (#6232)
Browse files Browse the repository at this point in the history
This reverts commit be8c03f.
  • Loading branch information
soyuka authored Mar 19, 2024
1 parent be8c03f commit 5f12d9d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Api/Entrypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ public function getResourceNameCollection(): ResourceNameCollection
}
}

if (!class_exists(\ApiPlatform\Core\Api\Entrypoint::class)) {
if (!class_exists()) {
class_alias(Entrypoint::class, \ApiPlatform\Core\Api\Entrypoint::class);
}
2 changes: 1 addition & 1 deletion src/Api/QueryParameterValidator/Validator/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function validate(string $name, array $filterDescription, array $queryPar
}
}

if (!class_exists(\ApiPlatform\Core\Filter\Validator\Enum::class)) {
if (!class_exists()) {
class_alias(Enum::class, \ApiPlatform\Core\Filter\Validator\Enum::class);
}
2 changes: 1 addition & 1 deletion src/Api/QueryParameterValidator/Validator/Length.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public function validate(string $name, array $filterDescription, array $queryPar
}
}

if (!class_exists(\ApiPlatform\Core\Filter\Validator\Length::class)) {
if (!class_exists()) {
class_alias(Length::class, \ApiPlatform\Core\Filter\Validator\Length::class);
}
2 changes: 1 addition & 1 deletion src/Api/QueryParameterValidator/Validator/MultipleOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function validate(string $name, array $filterDescription, array $queryPar
}
}

if (!class_exists(\ApiPlatform\Core\Filter\Validator\MultipleOf::class)) {
if (!class_exists()) {
class_alias(MultipleOf::class, \ApiPlatform\Core\Filter\Validator\MultipleOf::class);
}
2 changes: 1 addition & 1 deletion src/Api/QueryParameterValidator/Validator/Pattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function validate(string $name, array $filterDescription, array $queryPar
}
}

if (!class_exists(\ApiPlatform\Core\Filter\Validator\Pattern::class)) {
if (!class_exists()) {
class_alias(Pattern::class, \ApiPlatform\Core\Filter\Validator\Pattern::class);
}
2 changes: 1 addition & 1 deletion src/Api/QueryParameterValidator/Validator/Required.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ private function requestGetQueryParameter(array $queryParameters, string $name)
}
}

if (!class_exists(\ApiPlatform\Core\Filter\Validator\Required::class)) {
if (!class_exists()) {
class_alias(Required::class, \ApiPlatform\Core\Filter\Validator\Required::class);
}

0 comments on commit 5f12d9d

Please sign in to comment.