Skip to content

Commit

Permalink
fixup! Add type annotations to QueryInterceptor methods
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Dec 18, 2024
1 parent bfe5106 commit 7f5e302
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/QueryInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function invoke(MethodInvocation $invocation)

/**
* @param MethodInvocation<object> $invocation
* @param array<string, mixed> $param
* @param array<string, mixed> $param
*
* @return mixed
*/
Expand All @@ -64,9 +64,8 @@ private function getQueryResult(MethodInvocation $invocation, QueryInterface $qu
}

/**
* @param MethodInvocation $invocation
* @param MethodInvocation<object> $invocation
* @param array|object|scalar|null $result

Check failure on line 68 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

@param annotation of method \Ray\Query\QueryInterceptor::returnRo() does not specify type hint for items of its traversable parameter $result.
* @return ResourceObject
*/
private function returnRo(ResourceObject $ro, MethodInvocation $invocation, $result): ResourceObject

Check failure on line 70 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / sa / PHPStan

Method Ray\Query\QueryInterceptor::returnRo() has parameter $result with no value type specified in iterable type array.
{
Expand Down

0 comments on commit 7f5e302

Please sign in to comment.