Skip to content

Commit

Permalink
Make shape fields explicitly nullable
Browse files Browse the repository at this point in the history
This adds compatibility for HHVM >= 3.23 and removes compatibility
for HHVM < 3.23.
  • Loading branch information
henningjanssen authored and nikic committed Feb 13, 2018
1 parent a9caa48 commit 181d480
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions FastRoute.hhi
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ namespace FastRoute {
function simpleDispatcher(
(function(RouteCollector): void) $routeDefinitionCallback,
shape(
'routeParser' => ?classname<RouteParser>,
'dataGenerator' => ?classname<DataGenerator>,
'dispatcher' => ?classname<Dispatcher>,
'routeCollector' => ?classname<RouteCollector>,
?'routeParser' => classname<RouteParser>,
?'dataGenerator' => classname<DataGenerator>,
?'dispatcher' => classname<Dispatcher>,
?'routeCollector' => classname<RouteCollector>,
) $options = shape()): Dispatcher;

function cachedDispatcher(
(function(RouteCollector): void) $routeDefinitionCallback,
shape(
'routeParser' => ?classname<RouteParser>,
'dataGenerator' => ?classname<DataGenerator>,
'dispatcher' => ?classname<Dispatcher>,
'routeCollector' => ?classname<RouteCollector>,
'cacheDisabled' => ?bool,
'cacheFile' => ?string,
?'routeParser' => classname<RouteParser>,
?'dataGenerator' => classname<DataGenerator>,
?'dispatcher' => classname<Dispatcher>,
?'routeCollector' => classname<RouteCollector>,
?'cacheDisabled' => bool,
?'cacheFile' => string,
) $options = shape()): Dispatcher;
}

Expand Down

0 comments on commit 181d480

Please sign in to comment.