Skip to content

Commit

Permalink
Psalm fix
Browse files Browse the repository at this point in the history
Signed-off-by: alexmerlin <[email protected]>
  • Loading branch information
alexmerlin committed May 29, 2024
1 parent b69a6bb commit b96dc49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@
<code>matching</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/App/src/Handler/ResponseTrait.php">
<UndefinedThisPropertyFetch>
<code>$this->responseFactory</code>
<code>$this->resourceGenerator</code>
</UndefinedThisPropertyFetch>
</file>
</files>
5 changes: 5 additions & 0 deletions src/App/src/Handler/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
use Laminas\Diactoros\Response\EmptyResponse;

Check warning on line 16 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'EmptyResponse'

Check warning on line 16 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Response'
use Laminas\Diactoros\Response\JsonResponse;
use Laminas\Diactoros\Response\RedirectResponse;
use Mezzio\Hal\HalResponseFactory;

Check warning on line 19 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'HalResponseFactory'

Check warning on line 19 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Hal'
use Mezzio\Hal\Metadata\MetadataMap;

Check warning on line 20 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'MetadataMap'

Check warning on line 20 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Metadata'
use Mezzio\Hal\Metadata\RouteBasedCollectionMetadata;

Check warning on line 21 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'RouteBasedCollectionMetadata'

Check warning on line 21 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Metadata'
use Mezzio\Hal\ResourceGenerator;

Check warning on line 22 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'ResourceGenerator'

Check warning on line 22 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Hal'
use Mezzio\Hal\ResourceGenerator\Exception\OutOfBoundsException;
use Mezzio\Router\RouteResult;

Check warning on line 24 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'RouteResult'

Check warning on line 24 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined namespace

Undefined namespace 'Router'
use Psr\Http\Message\ResponseInterface;
Expand All @@ -32,6 +34,9 @@

trait ResponseTrait
{
protected HalResponseFactory $responseFactory;

Check warning on line 37 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'HalResponseFactory'
protected ResourceGenerator $resourceGenerator;

Check warning on line 38 in src/App/src/Handler/ResponseTrait.php

View workflow job for this annotation

GitHub Actions / Qodana for PHP

Undefined class

Undefined class 'ResourceGenerator'

/**
* @throws Exception
*/
Expand Down

0 comments on commit b96dc49

Please sign in to comment.