Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add null to param type-hints #2874

Conversation

adriansuter
Copy link
Contributor

The last three parameters of the \Slim\Routing\RouteCollector constructor can be null. So this PR would update the docblock type-hints accordingly.

public function __construct(
ResponseFactoryInterface $responseFactory,
CallableResolverInterface $callableResolver,
?ContainerInterface $container = null,
?InvocationStrategyInterface $defaultInvocationStrategy = null,
?RouteParserInterface $routeParser = null,
?string $cacheFile = null
) {

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling fc6531e on adriansuter:patch-route-collector-constructor-docblock into 7f36c9e on slimphp:4.x.

@l0gicgate l0gicgate added this to the 4.4.0 milestone Nov 1, 2019
@l0gicgate l0gicgate merged commit 624dd0b into slimphp:4.x Nov 1, 2019
@adriansuter adriansuter deleted the patch-route-collector-constructor-docblock branch November 1, 2019 22:59
@l0gicgate l0gicgate mentioned this pull request Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants