Skip to content

Commit 6e75fe6

Browse files
Merge branch '4.4' into 5.4
* 4.4: CS fixes Bump Symfony version to 4.4.44 Update VERSION for 4.4.43 Update CONTRIBUTORS for 4.4.43 Update CHANGELOG for 4.4.43
2 parents 597f3ff + 5cee9cd commit 6e75fe6

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

ExecutableFinder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public function addSuffix(string $suffix)
4848
*/
4949
public function find(string $name, string $default = null, array $extraDirs = [])
5050
{
51-
if (ini_get('open_basedir')) {
52-
$searchPath = array_merge(explode(\PATH_SEPARATOR, ini_get('open_basedir')), $extraDirs);
51+
if (\ini_get('open_basedir')) {
52+
$searchPath = array_merge(explode(\PATH_SEPARATOR, \ini_get('open_basedir')), $extraDirs);
5353
$dirs = [];
5454
foreach ($searchPath as $path) {
5555
// Silencing against https://bugs.php.net/69240

Pipes/AbstractPipes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected function write(): ?array
104104
stream_set_blocking($input, 0);
105105
} elseif (!isset($this->inputBuffer[0])) {
106106
if (!\is_string($input)) {
107-
if (!is_scalar($input)) {
107+
if (!\is_scalar($input)) {
108108
throw new InvalidArgumentException(sprintf('"%s" yielded a value of type "%s", but only scalars and stream resources are supported.', get_debug_type($this->input), get_debug_type($input)));
109109
}
110110
$input = (string) $input;

ProcessUtils.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static function validateInput(string $caller, $input)
4848
if (\is_string($input)) {
4949
return $input;
5050
}
51-
if (is_scalar($input)) {
51+
if (\is_scalar($input)) {
5252
return (string) $input;
5353
}
5454
if ($input instanceof Process) {

Tests/ExecutableFinderTest.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private function setPath($path)
3737

3838
public function testFind()
3939
{
40-
if (ini_get('open_basedir')) {
40+
if (\ini_get('open_basedir')) {
4141
$this->markTestSkipped('Cannot test when open_basedir is set');
4242
}
4343

@@ -51,7 +51,7 @@ public function testFind()
5151

5252
public function testFindWithDefault()
5353
{
54-
if (ini_get('open_basedir')) {
54+
if (\ini_get('open_basedir')) {
5555
$this->markTestSkipped('Cannot test when open_basedir is set');
5656
}
5757

@@ -67,7 +67,7 @@ public function testFindWithDefault()
6767

6868
public function testFindWithNullAsDefault()
6969
{
70-
if (ini_get('open_basedir')) {
70+
if (\ini_get('open_basedir')) {
7171
$this->markTestSkipped('Cannot test when open_basedir is set');
7272
}
7373

@@ -82,7 +82,7 @@ public function testFindWithNullAsDefault()
8282

8383
public function testFindWithExtraDirs()
8484
{
85-
if (ini_get('open_basedir')) {
85+
if (\ini_get('open_basedir')) {
8686
$this->markTestSkipped('Cannot test when open_basedir is set');
8787
}
8888

@@ -105,7 +105,7 @@ public function testFindWithOpenBaseDir()
105105
$this->markTestSkipped('Cannot run test on windows');
106106
}
107107

108-
if (ini_get('open_basedir')) {
108+
if (\ini_get('open_basedir')) {
109109
$this->markTestSkipped('Cannot test when open_basedir is set');
110110
}
111111

@@ -122,7 +122,7 @@ public function testFindWithOpenBaseDir()
122122
*/
123123
public function testFindProcessInOpenBasedir()
124124
{
125-
if (ini_get('open_basedir')) {
125+
if (\ini_get('open_basedir')) {
126126
$this->markTestSkipped('Cannot test when open_basedir is set');
127127
}
128128
if ('\\' === \DIRECTORY_SEPARATOR) {
@@ -140,7 +140,7 @@ public function testFindProcessInOpenBasedir()
140140

141141
public function testFindBatchExecutableOnWindows()
142142
{
143-
if (ini_get('open_basedir')) {
143+
if (\ini_get('open_basedir')) {
144144
$this->markTestSkipped('Cannot test when open_basedir is set');
145145
}
146146
if ('\\' !== \DIRECTORY_SEPARATOR) {

Tests/ProcessTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ public function testTermSignalTerminatesProcessCleanly()
11331133
public function responsesCodeProvider()
11341134
{
11351135
return [
1136-
//expected output / getter / code to execute
1136+
// expected output / getter / code to execute
11371137
// [1,'getExitCode','exit(1);'],
11381138
// [true,'isSuccessful','exit();'],
11391139
['output', 'getOutput', 'echo \'output\';'],

0 commit comments

Comments
 (0)