Follow CS and phpstan changes (#1530)

This commit is contained in:
Martin Rademacher 2024-01-08 10:56:47 +13:00 committed by GitHub
parent a70a5dc5db
commit 2e03e6d5ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 6 deletions

View File

@ -11,7 +11,7 @@ use OpenApi\Annotations as OA;
trait BellsAndWhistles
{
use Bells;
use \OpenApi\Examples\UsingTraits\Decoration\Whistles;
use Decoration\Whistles;
/**
* The plating.

View File

@ -9,7 +9,7 @@ use OpenApi\Annotations as OA;
*/
class Product
{
use \OpenApi\Examples\UsingTraits\Colour;
use Colour;
use BellsAndWhistles;
/**

View File

@ -41,8 +41,11 @@ class ExpandEnums implements ProcessorInterface
$schemaType = $schema->type;
$enumType = null;
if ($re->isBacked() && ($backingType = $re->getBackingType()) && $backingType instanceof \ReflectionNamedType) {
$enumType = $backingType->getName();
if ($re->isBacked()) {
$backingType = $re->getBackingType();
if ($backingType instanceof \ReflectionNamedType) {
$enumType = $backingType->getName();
}
}
// no (or invalid) schema type means name

View File

@ -9,5 +9,5 @@ namespace OpenApi\Tests\Fixtures\Parser;
trait AllTraits
{
use AsTrait;
use \OpenApi\Tests\Fixtures\Parser\HelloTrait;
use HelloTrait;
}

View File

@ -14,7 +14,7 @@ use OpenApi\Tests\Fixtures\Parser\Sub\SubClass as ParentClass;
* example=User::CONSTANT,
* )
*/
class User extends ParentClass implements \OpenApi\Tests\Fixtures\Parser\UserInterface
class User extends ParentClass implements UserInterface
{
use Hello;