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 @@ -695,7 +695,8 @@ public function renderException($e, $output)
695
695
do {
696
696
$ title = sprintf (' [%s] ' , get_class ($ e ));
697
697
$ len = $ strlen ($ title );
698
- $ width = $ this ->getTerminalWidth () ? $ this ->getTerminalWidth () - 1 : PHP_INT_MAX ;
698
+ // 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
699
+ $ width = $ this ->getTerminalWidth () ? $ this ->getTerminalWidth () - 1 : (defined ('HHVM_VERSION ' ) ? 1 << 31 : PHP_INT_MAX );
699
700
$ formatter = $ output ->getFormatter ();
700
701
$ lines = array ();
701
702
foreach (preg_split ('/\r?\n/ ' , $ e ->getMessage ()) as $ line ) {
@@ -1052,7 +1053,7 @@ public function extractNamespace($name, $limit = null)
1052
1053
* if nothing is found in $collection, try in $abbrevs
1053
1054
*
1054
1055
* @param string $name The string
1055
- * @param array|Traversable $collection The collection
1056
+ * @param array|\ Traversable $collection The collection
1056
1057
*
1057
1058
* @return array A sorted array of similar string
1058
1059
*/
You can’t perform that action at this time.
0 commit comments