Skip to content

Commit d24e64a

Browse files
committed
refactor: Fix phpstan return.type
1 parent e5a60f3 commit d24e64a

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public function setHTTPVerb(string $verb)
652652
* It does not allow any options to be set on the route, or to
653653
* define the method used.
654654
*/
655-
public function map(array $routes = [], ?array $options = null): RouteCollectionInterface
655+
public function map(array $routes = [], ?array $options = null): static
656656
{
657657
foreach ($routes as $from => $to) {
658658
$this->add($from, $to, $options);

utils/phpstan-baseline/loader.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ includes:
4545
- property.readOnlyByPhpDocDefaultValue.neon
4646
- property.unusedType.neon
4747
- return.missing.neon
48-
- return.type.neon
4948
- return.unusedType.neon
5049
- staticMethod.notFound.neon
5150
- ternary.shortNotAllowed.neon

utils/phpstan-baseline/return.type.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)