Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 80b7db1

Browse files
author
Andrés Correa Casablanca
committed
Remove internal support for PHP <= 5.4 in ExecuteAction::getClosure
1 parent 4df6a5a commit 80b7db1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Actions/ExecuteAction.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ private function getClosure(): callable
109109
$this->shellSoul->addCode($this->code);
110110

111111
// evaluate the current code buffer
112-
ob_start(
113-
[$this->shellSoul, 'writeStdout'],
114-
version_compare(PHP_VERSION, '5.4', '>=') ? 1 : 2
115-
);
112+
ob_start([$this->shellSoul, 'writeStdout'], 1);
116113

117114
set_error_handler([$this->shellSoul, 'handleError']);
118115
$_ = eval($this->shellSoul->flushCode() ?: Loop::NOOP_INPUT);

0 commit comments

Comments
 (0)