Skip to content

Commit 0bc632c

Browse files
committed
refactor: Fix phpstan return.type
1 parent 33110c5 commit 0bc632c

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
@@ -48,7 +48,6 @@ includes:
4848
- property.readOnlyByPhpDocDefaultValue.neon
4949
- property.unusedType.neon
5050
- return.missing.neon
51-
- return.type.neon
5251
- return.unusedType.neon
5352
- staticMethod.notFound.neon
5453
- ternary.shortNotAllowed.neon

utils/phpstan-baseline/return.type.neon

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

0 commit comments

Comments
 (0)