diff --git a/src/KzykHys/Pygments/Pygments.php b/src/KzykHys/Pygments/Pygments.php index 6ebd652..6b1e515 100644 --- a/src/KzykHys/Pygments/Pygments.php +++ b/src/KzykHys/Pygments/Pygments.php @@ -62,7 +62,7 @@ public function highlight($code, $lexer = null, $formatter = null, $options = ar $builder->add('-O')->add(implode(',', $arg)); } - $process = $builder->getProcess()->setStdin($code); + $process = $builder->setInput($code)->getProcess(); return $this->getOutput($process); } @@ -197,4 +197,4 @@ protected function parseList($input) return $list; } -} \ No newline at end of file +}