From 181d480e08d9476e61381e04a71b34dc0432e812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henning=20Jan=C3=9Fen?= Date: Tue, 13 Feb 2018 21:26:39 +0100 Subject: [PATCH] Make shape fields explicitly nullable This adds compatibility for HHVM >= 3.23 and removes compatibility for HHVM < 3.23. --- FastRoute.hhi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/FastRoute.hhi b/FastRoute.hhi index c34bb8e..8d50738 100644 --- a/FastRoute.hhi +++ b/FastRoute.hhi @@ -34,21 +34,21 @@ namespace FastRoute { function simpleDispatcher( (function(RouteCollector): void) $routeDefinitionCallback, shape( - 'routeParser' => ?classname, - 'dataGenerator' => ?classname, - 'dispatcher' => ?classname, - 'routeCollector' => ?classname, + ?'routeParser' => classname, + ?'dataGenerator' => classname, + ?'dispatcher' => classname, + ?'routeCollector' => classname, ) $options = shape()): Dispatcher; function cachedDispatcher( (function(RouteCollector): void) $routeDefinitionCallback, shape( - 'routeParser' => ?classname, - 'dataGenerator' => ?classname, - 'dispatcher' => ?classname, - 'routeCollector' => ?classname, - 'cacheDisabled' => ?bool, - 'cacheFile' => ?string, + ?'routeParser' => classname, + ?'dataGenerator' => classname, + ?'dispatcher' => classname, + ?'routeCollector' => classname, + ?'cacheDisabled' => bool, + ?'cacheFile' => string, ) $options = shape()): Dispatcher; }