Skip to content

Commit

Permalink
ApiRoute: skip optional flags
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Feb 23, 2024
1 parent 16f8103 commit e475373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions phpstan.neon
Expand Up @@ -34,6 +34,9 @@ parameters:
# Allow empty()
- '#Construct empty\(\) is not allowed. Use more strict comparison.$#'

# ApiRoute optional flag
- '#Constructor of class Apitte\\Presenter\\ApiRoute has an unused parameter \$flags.$#'

# Ignore bad php behavior - should not happen
- message: '#\|false given\.$#'
path: %currentWorkingDirectory%/src/Debug/Tracy/BlueScreen/ValidationBlueScreen.php
Expand Down
2 changes: 1 addition & 1 deletion src/Presenter/ApiRoute.php
Expand Up @@ -18,7 +18,7 @@ public function __construct(string $prefix, array $metadata = [], int $flags = 0
$metadata['presenter'] = self::APITTE_MODULE;
}

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

}

0 comments on commit e475373

Please sign in to comment.