Fix type hint to match php docs
authorMark A. Hershberger <mah@everybody.org>
Wed, 10 Dec 2014 20:00:45 +0000 (15:00 -0500)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 10 Dec 2014 20:37:47 +0000 (20:37 +0000)
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

index 1d558d2..3fda23a 100644 (file)
@@ -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 ) {