Skip to content

Commit e475373

Browse files
committed
ApiRoute: skip optional flags
1 parent 16f8103 commit e475373

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ parameters:
3434
# Allow empty()
3535
- '#Construct empty\(\) is not allowed. Use more strict comparison.$#'
3636

37+
# ApiRoute optional flag
38+
- '#Constructor of class Apitte\\Presenter\\ApiRoute has an unused parameter \$flags.$#'
39+
3740
# Ignore bad php behavior - should not happen
3841
- message: '#\|false given\.$#'
3942
path: %currentWorkingDirectory%/src/Debug/Tracy/BlueScreen/ValidationBlueScreen.php

src/Presenter/ApiRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(string $prefix, array $metadata = [], int $flags = 0
1818
$metadata['presenter'] = self::APITTE_MODULE;
1919
}
2020

21-
parent::__construct(rtrim($prefix, '/') . '/<path .*>', $metadata, $flags);
21+
parent::__construct(rtrim($prefix, '/') . '/<path .*>', $metadata);
2222
}
2323

2424
}

0 commit comments

Comments
 (0)