Explorar o código

Merge pull request #2258 from romainneutron/inf-val

Update INF to PHP_INT_MAX as recommended by Stof
Jordi Boggiano %!s(int64=11) %!d(string=hai) anos
pai
achega
441f0ee7d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Command/ShowCommand.php

+ 1 - 1
src/Composer/Command/ShowCommand.php

@@ -188,7 +188,7 @@ EOT
                 if (null === $width) {
                     // In case the width is not detected, we're probably running the command
                     // outside of a real terminal, use space without a limit
-                    $width = INF;
+                    $width = PHP_INT_MAX;
                 }
                 if (defined('PHP_WINDOWS_VERSION_BUILD')) {
                     $width--;