Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 17, 2024
1 parent 3710168 commit 4d7ed48
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ parameters:

bootstrapFiles:
- %rootDir%/../../../tests/bootstrap.php
- %rootDir%/../../../tmp/CodeCompletionCakeORM.php

excludePaths:
- %rootDir%/../../../src/Console/Installer.php
Expand Down
1 change: 1 addition & 0 deletions plugins/Sandbox/src/Controller/LocalizedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function basic() {
$available = $this->Validation->getAvailable();
$methods = $this->Validation->getMethods();

/** @var string|null $method */
$method = $this->request->getQuery('method');
if ($method && !in_array($method, $methods, true)) {
throw new NotFoundException('This method does not exist');
Expand Down
1 change: 0 additions & 1 deletion tests/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ parameters:

bootstrapFiles:
- %rootDir%/../../../tests/bootstrap.php
- %rootDir%/../../../tmp/CodeCompletionCakeORM.php

ignoreErrors:

0 comments on commit 4d7ed48

Please sign in to comment.