Skip to content

Commit

Permalink
Update src/QueryInterceptor.php
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
koriym and coderabbitai[bot] authored Dec 18, 2024
1 parent 0354483 commit bfe5106
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/QueryInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ private function getQueryResult(MethodInvocation $invocation, QueryInterface $qu
}

/**
* @param MethodInvocation<object> $invocation
* @param mixed $result
* @param MethodInvocation $invocation

Check failure on line 67 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Incorrect annotations group.

Check failure on line 67 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Method \Ray\Query\QueryInterceptor::returnRo() has useless @param annotation for parameter $invocation.

Check failure on line 67 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Expected 9 spaces after parameter type; 1 found
* @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

Check failure on line 69 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / cs / Coding Standards

Method \Ray\Query\QueryInterceptor::returnRo() has useless @return annotation.
*/
private function returnRo(ResourceObject $ro, MethodInvocation $invocation, $result): ResourceObject

Check failure on line 71 in src/QueryInterceptor.php

View workflow job for this annotation

GitHub Actions / sa / PHPStan

Method Ray\Query\QueryInterceptor::returnRo() has parameter $invocation with generic interface Ray\Aop\MethodInvocation but does not specify its types: T

Check failure on line 71 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 bfe5106

Please sign in to comment.