From f0723166f1a29b7298456006c2f1a7a4d9d1bb3f Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 10 Dec 2014 15:00:45 -0500 Subject: [PATCH] Fix type hint to match php docs From http://php.net/manual/en/function.posix-isatty.php bool posix_isatty ( mixed $fd ) Determines if the file descriptor fd refers to a valid terminal type device. fd The file descriptor, which is expected to be either a file resource or an integer. An integer will be assumed to be a file descriptor that can be passed directly to the underlying system call. In almost all cases, you will want to provide a file resource. Change-Id: Ief19ac1f09e0a955c8f5d5af28b87b8e8d427a2e --- maintenance/Maintenance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 1d558d281a..3fda23a992 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1184,7 +1184,7 @@ abstract class Maintenance { * We default as considering stdin a tty (for nice readline methods) * but treating stout as not a tty to avoid color codes * - * @param int $fd File descriptor + * @param mixed $fd File descriptor * @return bool */ public static function posix_isatty( $fd ) { -- 2.20.1