Follow CS and phpstan changes (#1530)
This commit is contained in:
parent
a70a5dc5db
commit
2e03e6d5ff
|
@ -11,7 +11,7 @@ use OpenApi\Annotations as OA;
|
|||
trait BellsAndWhistles
|
||||
{
|
||||
use Bells;
|
||||
use \OpenApi\Examples\UsingTraits\Decoration\Whistles;
|
||||
use Decoration\Whistles;
|
||||
|
||||
/**
|
||||
* The plating.
|
||||
|
|
|
@ -9,7 +9,7 @@ use OpenApi\Annotations as OA;
|
|||
*/
|
||||
class Product
|
||||
{
|
||||
use \OpenApi\Examples\UsingTraits\Colour;
|
||||
use Colour;
|
||||
use BellsAndWhistles;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -9,5 +9,5 @@ namespace OpenApi\Tests\Fixtures\Parser;
|
|||
trait AllTraits
|
||||
{
|
||||
use AsTrait;
|
||||
use \OpenApi\Tests\Fixtures\Parser\HelloTrait;
|
||||
use HelloTrait;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue