diff --git a/src/Support/ClosureStream.php b/src/Support/ClosureStream.php index 29f66b62..8bcceb0a 100644 --- a/src/Support/ClosureStream.php +++ b/src/Support/ClosureStream.php @@ -63,7 +63,7 @@ public function stream_open($path, $mode, $options, &$opened_path) public function stream_read($count) { $value = substr($this->content, $this->pointer, $count); - + $this->pointer += $count; return $value; diff --git a/src/Support/ReflectionClosure.php b/src/Support/ReflectionClosure.php index 7559c56a..139696d3 100644 --- a/src/Support/ReflectionClosure.php +++ b/src/Support/ReflectionClosure.php @@ -124,7 +124,7 @@ public function getCode() for ($i = 0, $l = count($tokens); $i < $l; $i++) { $token = $tokens[$i]; - + switch ($state) { case 'start': if ($token[0] === T_FUNCTION || $token[0] === T_STATIC) {