Skip to content

Commit b461993

Browse files
committed
phpstan
1 parent 21d1f54 commit b461993

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/deprecation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@
363363
ApiPlatform\Core\OpenApi\Model\OAuthFlows::class => ApiPlatform\OpenApi\Model\OAuthFlows::class,
364364
ApiPlatform\Core\OpenApi\Model\Parameter::class => ApiPlatform\OpenApi\Model\Parameter::class,
365365
ApiPlatform\Core\OpenApi\Model\Paths::class => ApiPlatform\OpenApi\Model\Paths::class,
366+
ApiPlatform\Core\OpenApi\Model\PathItem::class => ApiPlatform\OpenApi\Model\PathItem::class,
367+
ApiPlatform\Core\OpenApi\Model\Operation::class => ApiPlatform\OpenApi\Model\Operation::class,
366368
ApiPlatform\Core\OpenApi\Model\RequestBody::class => ApiPlatform\OpenApi\Model\RequestBody::class,
367369
ApiPlatform\Core\OpenApi\Model\Response::class => ApiPlatform\OpenApi\Model\Response::class,
368370
ApiPlatform\Core\OpenApi\Model\Schema::class => ApiPlatform\OpenApi\Model\Schema::class,
@@ -480,7 +482,7 @@ class_alias($deprecatedInterfaces[$className], $className);
480482
}
481483

482484
// We try to use the new interface but it isn't aliased yet
483-
if (in_array($className, $deprecatedInterfaces, true) && !class_exists($className)) {
485+
if (in_array($className, (array) $deprecatedInterfaces, true) && !class_exists($className)) {
484486
$oldClassName = array_search($className, $deprecatedInterfaces, true);
485487
class_alias($oldClassName, $className);
486488
}

0 commit comments

Comments
 (0)