From 189e12f3e81d8663e3fefe2fe18b627048cb1b95 Mon Sep 17 00:00:00 2001 From: Samuel ROZE Date: Thu, 29 Sep 2016 15:54:38 +0100 Subject: [PATCH] Uses builder's `setInput` --- src/KzykHys/Pygments/Pygments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}