Skip to content

Commit ae8b65f

Browse files
committed
fixed in_array
1 parent 5e12234 commit ae8b65f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpGenerator/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static function formatArgs($statement, array $args)
154154
$statement = substr_replace($statement, $arg, $a, 2);
155155

156156
} else {
157-
$arg = substr($statement, $a - 1, 1) === '$' || in_array(substr($statement, $a - 2, 2), array('->', '::'))
157+
$arg = substr($statement, $a - 1, 1) === '$' || in_array(substr($statement, $a - 2, 2), array('->', '::'), TRUE)
158158
? self::formatMember($arg) : self::_dump($arg);
159159
$statement = substr_replace($statement, $arg, $a, 1);
160160
}

0 commit comments

Comments
 (0)