]> git.andy128k.dev Git - ipf.git/commitdiff
fix middleware constructor type hints
authorAndrey Kutejko <andy128k@gmail.com>
Sat, 30 Dec 2017 13:38:28 +0000 (14:38 +0100)
committerAndrey Kutejko <andy128k@gmail.com>
Sat, 30 Dec 2017 13:38:28 +0000 (14:38 +0100)
ipf/middleware/base.php

index 7449207650942bc74cbc0d68fe7fd14489c0ec58..42e289607d77631a3de3362c7a68249de8f82195 100644 (file)
@@ -11,7 +11,12 @@ class IPF_Middleware
     /** @var IPF_Project */
     protected $project;
 
-    function __construct(IPF_Middleware $next, IPF_Settings $settings, IPF_Project $project)
+    /**
+     * @param IPF_Middleware|null $next Next middleware in a chain
+     * @param IPF_Settings $settings
+     * @param IPF_Project $project
+     */
+    function __construct($next, IPF_Settings $settings, IPF_Project $project)
     {
         $this->next = $next;
         $this->settings = $settings;