Skip to content

Commit

Permalink
fix: psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
mcharytoniuk committed Jan 11, 2024
1 parent dfa2344 commit 837dc89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/OpenAPIPathItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Distantmagic\Resonance;

use Distantmagic\Resonance\Attribute\RequiresOAuth2Scope;
use Distantmagic\Resonance\Attribute\RespondsToHttp;
use Ds\Set;
use ReflectionClass;
Expand All @@ -12,7 +13,7 @@
{
/**
* @param ReflectionClass<HttpResponderInterface> $reflectionClass
* @param Set<OAuth2ScopeInterface> $requiredOAuth2Scopes
* @param Set<RequiresOAuth2Scope> $requiredOAuth2Scopes
*/
public function __construct(
public OpenAPISchemaSymbolInterface $openAPISchemaSymbol,
Expand Down
2 changes: 1 addition & 1 deletion src/OpenAPISchemaOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function generateOperationId(): string
);
}

private function serializeRequiredOAuth2Scopes()
private function serializeRequiredOAuth2Scopes(): array
{
$scopes = [];

Expand Down
3 changes: 3 additions & 0 deletions src/ReflectionClassAttributeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public function findAttributes(string $attributeClassName): Set
->getAttributes($attributeClassName, ReflectionAttribute::IS_INSTANCEOF)
;

/**
* @var Set<TAttribute> $ret
*/
$ret = new Set();

foreach ($reflectionAttributes as $reflectionAttribute) {
Expand Down

0 comments on commit 837dc89

Please sign in to comment.