Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Mitigate PHPUnit deprecations
  [TwigBundle] Add support for resetting globals between HTTP requests
  Mitigate PHPUnit deprecations
  [Cache] Fix compatibility with Redis 6.1.0 pre-releases
  [Validator] Add Catalan and Spanish translation for `Week` constraint
  Don't use is_resource() on non-streams
  [Ldap] Fix extension deprecation
  • Loading branch information
derrabus committed Sep 8, 2024
2 parents 1eed7af + 3e36da1 commit 1803850
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Terminal.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,7 @@ private static function readFromProcess(string|array $command): ?string

$cp = \function_exists('sapi_windows_cp_set') ? sapi_windows_cp_get() : 0;

$process = proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
if (!\is_resource($process)) {
if (!$process = proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true])) {
return null;
}

Expand Down

0 comments on commit 1803850

Please sign in to comment.