Skip to content

Commit

Permalink
refactor: Fix phpstan return.type
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 7, 2025
1 parent e5a60f3 commit d24e64a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public function setHTTPVerb(string $verb)
* It does not allow any options to be set on the route, or to
* define the method used.
*/
public function map(array $routes = [], ?array $options = null): RouteCollectionInterface
public function map(array $routes = [], ?array $options = null): static
{
foreach ($routes as $from => $to) {
$this->add($from, $to, $options);
Expand Down
1 change: 0 additions & 1 deletion utils/phpstan-baseline/loader.neon
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ includes:
- property.readOnlyByPhpDocDefaultValue.neon
- property.unusedType.neon
- return.missing.neon
- return.type.neon
- return.unusedType.neon
- staticMethod.notFound.neon
- ternary.shortNotAllowed.neon
Expand Down
8 changes: 0 additions & 8 deletions utils/phpstan-baseline/return.type.neon

This file was deleted.

0 comments on commit d24e64a

Please sign in to comment.