Skip to content

Commit

Permalink
Only ignore a single PHPStan issue for the container helper in `BaseC…
Browse files Browse the repository at this point in the history
…ontroller`
  • Loading branch information
apfelbox committed Jun 6, 2024
1 parent 71157bf commit 5300bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
=====

* (internal) Simplify types of `ArgumentBag`.
* (internal) Only ignore a single PHPStan issue for the container helper in `BaseController`.


3.2.0
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ abstract class BaseController extends AbstractController
*/
protected function getService (string $service) : object
{
// @phpstan-ignore-next-line
// @phpstan-ignore-next-line return.type (The return value is fine, PHPStan doesn't know the generics)
return $this->container->get($service);
}

Expand Down

0 comments on commit 5300bcf

Please sign in to comment.