From: Mark A. Hershberger Date: Wed, 10 Dec 2014 20:00:45 +0000 (-0500) Subject: Fix type hint to match php docs X-Git-Tag: 1.31.0-rc.0~13006 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=f0723166f1a29b7298456006c2f1a7a4d9d1bb3f;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {