File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -696,7 +696,8 @@ public function renderException($e, $output)
696
696
do {
697
697
$ title = sprintf (' [%s] ' , get_class ($ e ));
698
698
$ len = $ strlen ($ title );
699
- $ width = $ this ->getTerminalWidth () ? $ this ->getTerminalWidth () - 1 : PHP_INT_MAX ;
699
+ // HHVM only accepts 32 bits integer in str_split, even when PHP_INT_MAX is a 64 bit integer: https://github.com/facebook/hhvm/issues/1327
700
+ $ width = $ this ->getTerminalWidth () ? $ this ->getTerminalWidth () - 1 : (defined ('HHVM_VERSION ' ) ? 1 << 31 : PHP_INT_MAX );
700
701
$ formatter = $ output ->getFormatter ();
701
702
$ lines = array ();
702
703
foreach (preg_split ('/\r?\n/ ' , $ e ->getMessage ()) as $ line ) {
@@ -1053,7 +1054,7 @@ public function extractNamespace($name, $limit = null)
1053
1054
* if nothing is found in $collection, try in $abbrevs
1054
1055
*
1055
1056
* @param string $name The string
1056
- * @param array|Traversable $collection The collection
1057
+ * @param array|\ Traversable $collection The collection
1057
1058
*
1058
1059
* @return array A sorted array of similar string
1059
1060
*/
You can’t perform that action at this time.
0 commit comments