Skip to content

Commit 191d0ff

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 88d1c0d + 814d068 commit 191d0ff

10 files changed

+14
-14
lines changed

Compiler/AnalyzeServiceReferencesPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function processValue($value, bool $isRoot = false)
112112
$value,
113113
$this->lazy || ($targetDefinition && $targetDefinition->isLazy()),
114114
true
115-
);
115+
);
116116
}
117117

118118
return $value;

Compiler/CheckDefinitionValidityPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function process(ContainerBuilder $container)
6363
foreach ($definition->getTags() as $name => $tags) {
6464
foreach ($tags as $attributes) {
6565
foreach ($attributes as $attribute => $value) {
66-
if (!is_scalar($value) && null !== $value) {
66+
if (!\is_scalar($value) && null !== $value) {
6767
throw new RuntimeException(sprintf('A "tags" attribute must be of a scalar-type for service "%s", tag "%s", attribute "%s".', $id, $name, $attribute));
6868
}
6969
}

Dumper/PhpDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,13 +719,13 @@ private function isTrivialInstance(Definition $definition): bool
719719
if ($v instanceof Reference && $this->container->has($id = (string) $v) && $this->container->findDefinition($id)->isSynthetic()) {
720720
continue;
721721
}
722-
if (!is_scalar($v) || $this->dumpValue($v) !== $this->dumpValue($v, false)) {
722+
if (!\is_scalar($v) || $this->dumpValue($v) !== $this->dumpValue($v, false)) {
723723
return false;
724724
}
725725
}
726726
} elseif ($arg instanceof Reference && $this->container->has($id = (string) $arg) && $this->container->findDefinition($id)->isSynthetic()) {
727727
continue;
728-
} elseif (!is_scalar($arg) || $this->dumpValue($arg) !== $this->dumpValue($arg, false)) {
728+
} elseif (!\is_scalar($arg) || $this->dumpValue($arg) !== $this->dumpValue($arg, false)) {
729729
return false;
730730
}
731731
}

EnvVarProcessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function getEnv(string $prefix, string $name, \Closure $getEnv)
112112
}
113113

114114
if ('file' === $prefix || 'require' === $prefix) {
115-
if (!is_scalar($file = $getEnv($name))) {
115+
if (!\is_scalar($file = $getEnv($name))) {
116116
throw new RuntimeException(sprintf('Invalid file name: env var "%s" is non-scalar.', $name));
117117
}
118118
if (!is_file($file)) {
@@ -184,7 +184,7 @@ public function getEnv(string $prefix, string $name, \Closure $getEnv)
184184
return null;
185185
}
186186

187-
if (!is_scalar($env)) {
187+
if (!\is_scalar($env)) {
188188
throw new RuntimeException(sprintf('Non-scalar env var "%s" cannot be cast to "%s".', $name, $prefix));
189189
}
190190

@@ -283,7 +283,7 @@ public function getEnv(string $prefix, string $name, \Closure $getEnv)
283283
$value = $this->container->getParameter($match[1]);
284284
}
285285

286-
if (!is_scalar($value)) {
286+
if (!\is_scalar($value)) {
287287
throw new RuntimeException(sprintf('Parameter "%s" found when resolving env var "%s" must be scalar, "%s" given.', $match[1], $name, get_debug_type($value)));
288288
}
289289

Loader/Configurator/AbstractConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static function processValue($value, $allowServices = false)
100100

101101
switch (true) {
102102
case null === $value:
103-
case is_scalar($value):
103+
case \is_scalar($value):
104104
return $value;
105105

106106
case $value instanceof ArgumentInterface:

Loader/Configurator/DefaultsConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final public function tag(string $name, array $attributes = []): self
4949
}
5050

5151
foreach ($attributes as $attribute => $value) {
52-
if (null !== $value && !is_scalar($value)) {
52+
if (null !== $value && !\is_scalar($value)) {
5353
throw new InvalidArgumentException(sprintf('Tag "%s", attribute "%s" in "_defaults" must be of a scalar-type.', $name, $attribute));
5454
}
5555
}

Loader/Configurator/Traits/TagTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final public function tag(string $name, array $attributes = []): self
2727
}
2828

2929
foreach ($attributes as $attribute => $value) {
30-
if (!is_scalar($value) && null !== $value) {
30+
if (!\is_scalar($value) && null !== $value) {
3131
throw new InvalidArgumentException(sprintf('A tag attribute must be of a scalar-type for service "%s", tag "%s", attribute "%s".', $this->id, $name, $attribute));
3232
}
3333
}

Loader/YamlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private function parseDefaults(array &$content, string $file): array
304304
}
305305

306306
foreach ($tag as $attribute => $value) {
307-
if (!is_scalar($value) && null !== $value) {
307+
if (!\is_scalar($value) && null !== $value) {
308308
throw new InvalidArgumentException(sprintf('Tag "%s", attribute "%s" in "_defaults" must be of a scalar-type in "%s". Check your YAML syntax.', $name, $attribute, $file));
309309
}
310310
}
@@ -616,7 +616,7 @@ private function parseDefinition(string $id, $service, string $file, array $defa
616616
}
617617

618618
foreach ($tag as $attribute => $value) {
619-
if (!is_scalar($value) && null !== $value) {
619+
if (!\is_scalar($value) && null !== $value) {
620620
throw new InvalidArgumentException(sprintf('A "tags" attribute must be of a scalar-type for service "%s", tag "%s", attribute "%s" in "%s". Check your YAML syntax.', $id, $name, $attribute, $file));
621621
}
622622
}

Tests/Compiler/RemoveUnusedDefinitionsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function testProcessDoesNotErrorOnServicesThatDoNotHaveDefinitions()
133133
->addArgument(new Reference('not.defined'))
134134
->setPublic(true);
135135

136-
$container->set('not.defined', new \StdClass());
136+
$container->set('not.defined', new \stdClass());
137137

138138
$this->process($container);
139139

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ public function testExtensions()
609609

610610
public function testExtensionInPhar()
611611
{
612-
if (\extension_loaded('suhosin') && !str_contains(ini_get('suhosin.executor.include.whitelist'), 'phar')) {
612+
if (\extension_loaded('suhosin') && !str_contains(\ini_get('suhosin.executor.include.whitelist'), 'phar')) {
613613
$this->markTestSkipped('To run this test, add "phar" to the "suhosin.executor.include.whitelist" settings in your php.ini file.');
614614
}
615615

0 commit comments

Comments
 (0)