Skip to content

Commit

Permalink
Phpstan: fix hints
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 4, 2022
1 parent cb7bcfe commit 6be4ca2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ includes:
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
level: 9
phpVersion: 70200

3 changes: 3 additions & 0 deletions src/QueryObjectContextAwareManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function fetch(QueryObject $queryObject): Result
return $result;
}

/**
* @param class-string $class
*/
public function create(string $class): QueryObject
{
$obj = $this->context->getByType($class);
Expand Down
3 changes: 3 additions & 0 deletions src/QueryObjectManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
interface QueryObjectManager
{

/**
* @param class-string $class
*/
public function create(string $class): QueryObject;

/**
Expand Down

0 comments on commit 6be4ca2

Please sign in to comment.