Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Jan 18, 2024
1 parent 19a3c54 commit 8feb174
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ bin/
!bin/openapi
composer.lock
coverage/
docs/.vitepress/cache/
docs/.vitepress/dist/
docs/node_modules/
docs/package-lock.json
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"require-dev": {
"composer/package-versions-deprecated": "^1.11",
"doctrine/annotations": "^1.7 || ^2.0",
"friendsofphp/php-cs-fixer": "^2.17 || ^3.0",
"friendsofphp/php-cs-fixer": "^2.17 || ^3.47.1",
"phpstan/phpstan": "^1.6",
"phpunit/phpunit": ">=8",
"vimeo/psalm": "^4.23"
Expand Down
48 changes: 24 additions & 24 deletions src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@
* Contexts are nested to reflect the code/parsing hierarchy. They include useful metadata
* which the processors can use to augment the annotations.
*
* @property string|null $comment The PHP DocComment
* @property string|null $filename
* @property int|null $line
* @property int|null $character
* @property string|null $namespace
* @property array|null $uses
* @property string|null $class
* @property string|null $interface
* @property string|null $trait
* @property string|null $enum
* @property array|string|null $extends Interfaces may extend a list of interfaces
* @property array|null $implements
* @property string|null $method
* @property string|null $property
* @property string|\ReflectionType|null $type
* @property bool|null $static Indicate a static method
* @property bool|null $nullable Indicate a nullable value
* @property bool|null $generated Indicate the context was generated by a processor or
* the serializer
* @property Annotations\AbstractAnnotation|null $nested
* @property Annotations\AbstractAnnotation[]|null $annotations
* @property LoggerInterface|null $logger Guaranteed to be set when using the `Generator`
* @property array|null $scanned Details of file scanner when using ReflectionAnalyser
* @property string|null $version The OpenAPI version in use
* @property string|null $comment The PHP DocComment
* @property string|null $filename
* @property int|null $line
* @property int|null $character
* @property string|null $namespace
* @property array|null $uses
* @property string|null $class
* @property string|null $interface
* @property string|null $trait
* @property string|null $enum
* @property array|string|null $extends Interfaces may extend a list of interfaces
* @property array|null $implements
* @property string|null $method
* @property string|null $property
* @property string|\ReflectionType|null $type
* @property bool|null $static Indicate a static method
* @property bool|null $nullable Indicate a nullable value
* @property bool|null $generated Indicate the context was generated by a processor or
* the serializer
* @property OA\AbstractAnnotation|null $nested
* @property OA\AbstractAnnotation[]|null $annotations
* @property LoggerInterface|null $logger Guaranteed to be set when using the `Generator`
* @property array|null $scanned Details of file scanner when using ReflectionAnalyser
* @property string|null $version The OpenAPI version in use
*/
#[\AllowDynamicProperties]
class Context
Expand Down
4 changes: 2 additions & 2 deletions tests/Annotations/SecuritySchemesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function testImplicitFlowAnnotation(): void

$annotations = $this->annotationsFromDocBlockParser($comment);
$this->assertCount(1, $annotations);
/** @var \OpenApi\Annotations\SecurityScheme $security */
/** @var OA\SecurityScheme $security */
$security = $annotations[0];
$this->assertInstanceOf(OA\SecurityScheme::class, $security);

Expand Down Expand Up @@ -119,7 +119,7 @@ public function testMultipleAnnotations(): void

$annotations = $this->annotationsFromDocBlockParser($comment);
$this->assertCount(1, $annotations);
/** @var \OpenApi\Annotations\SecurityScheme $security */
/** @var OA\SecurityScheme $security */
$security = $annotations[0];

$this->assertCount(2, $security->flows);
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/TypedProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TypedProperties
/**
* @OA\Property
*/
public \OpenApi\Tests\Fixtures\TypedProperties $namespaced;
public TypedProperties $namespaced;

/**
* @OA\Property
Expand Down

0 comments on commit 8feb174

Please sign in to comment.