From cadc440146d8ffe43cb41f5338ac4d53cc39ec08 Mon Sep 17 00:00:00 2001 From: James Kraai Date: Tue, 30 Jan 2018 13:06:13 -0600 Subject: [PATCH] Use callable type hint instead of a comment --- src/Controller/AbstractRestfulController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/AbstractRestfulController.php b/src/Controller/AbstractRestfulController.php index cff21f6db..edc8e0b21 100644 --- a/src/Controller/AbstractRestfulController.php +++ b/src/Controller/AbstractRestfulController.php @@ -527,7 +527,7 @@ public function requestHasContentType(Request $request, $contentType = '') * @param Callable $handler * @return AbstractRestfulController */ - public function addHttpMethodHandler($method, /* Callable */ $handler) + public function addHttpMethodHandler($method, callable $handler) { if (! is_callable($handler)) { throw new Exception\InvalidArgumentException(sprintf(