瀏覽代碼

Fix callable typehint

Change `callback` typehint to `callable` in order to satisfy phpstan.
Robert Pustułka 8 年之前
父節點
當前提交
688c1b057b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/IO/IOInterface.php

+ 1 - 1
src/Composer/IO/IOInterface.php

@@ -131,7 +131,7 @@ interface IOInterface
      * otherwise.
      *
      * @param string|array $question  The question to ask
-     * @param callback     $validator A PHP callback
+     * @param callable     $validator A PHP callback
      * @param null|int     $attempts  Max number of times to ask before giving up (default of null means infinite)
      * @param mixed        $default   The default answer if none is given by the user
      *