Skip to content

Commit 37fa45b

Browse files
committed
fixed CS
1 parent 0f958aa commit 37fa45b

File tree

50 files changed

+96
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+96
-96
lines changed

src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getLogs(/* Request $request = null */)
6767
@trigger_error(sprintf('The "%s()" method will have a new "Request $request = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
6868
}
6969

70-
if (1 <= \func_num_args() && null !== $request = \func_get_arg(0)) {
70+
if (1 <= \func_num_args() && null !== $request = func_get_arg(0)) {
7171
return $this->records[spl_object_hash($request)] ?? [];
7272
}
7373

@@ -89,7 +89,7 @@ public function countErrors(/* Request $request = null */)
8989
@trigger_error(sprintf('The "%s()" method will have a new "Request $request = null" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
9090
}
9191

92-
if (1 <= \func_num_args() && null !== $request = \func_get_arg(0)) {
92+
if (1 <= \func_num_args() && null !== $request = func_get_arg(0)) {
9393
return $this->errorCount[spl_object_hash($request)] ?? 0;
9494
}
9595

src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function __construct(array $mockedNamespaces = array())
5353
Blacklist::$blacklistedClassNames['\Symfony\Bridge\PhpUnit\Legacy\SymfonyTestsListenerTrait'] = 2;
5454
}
5555

56-
$enableDebugClassLoader = \class_exists('Symfony\Component\Debug\DebugClassLoader');
56+
$enableDebugClassLoader = class_exists('Symfony\Component\Debug\DebugClassLoader');
5757

5858
foreach ($mockedNamespaces as $type => $namespaces) {
5959
if (!\is_array($namespaces)) {

src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getProxyCode(Definition $definition)
9999

100100
private static function getProxyManagerVersion(): string
101101
{
102-
if (!\class_exists(Version::class)) {
102+
if (!class_exists(Version::class)) {
103103
return '0.0.1';
104104
}
105105

src/Symfony/Bridge/Twig/Tests/Command/DebugCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function testWithGlobals()
295295
$tester = $this->createCommandTester([], [], null, null, false, ['message' => $message]);
296296
$tester->execute([], ['decorated' => true]);
297297
$display = $tester->getDisplay();
298-
$this->assertContains(\json_encode($message), $display);
298+
$this->assertContains(json_encode($message), $display);
299299
}
300300

301301
public function testWithGlobalsJson()
@@ -304,7 +304,7 @@ public function testWithGlobalsJson()
304304
$tester = $this->createCommandTester([], [], null, null, false, $globals);
305305
$tester->execute(['--format' => 'json'], ['decorated' => true]);
306306
$display = $tester->getDisplay();
307-
$display = \json_decode($display, true);
307+
$display = json_decode($display, true);
308308
$this->assertSame($globals, $display['globals']);
309309
}
310310

@@ -313,10 +313,10 @@ public function testWithFilter()
313313
$tester = $this->createCommandTester();
314314
$tester->execute(['--format' => 'json'], ['decorated' => false]);
315315
$display = $tester->getDisplay();
316-
$display1 = \json_decode($display, true);
316+
$display1 = json_decode($display, true);
317317
$tester->execute(['--filter' => 'date', '--format' => 'json'], ['decorated' => false]);
318318
$display = $tester->getDisplay();
319-
$display2 = \json_decode($display, true);
319+
$display2 = json_decode($display, true);
320320
$this->assertNotSame($display1, $display2);
321321
}
322322

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/AnnotationsCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(Reader $annotationReader, string $phpArrayFile, $exc
4040
if ($excludeRegexp instanceof CacheItemPoolInterface) {
4141
@trigger_error(sprintf('The CacheItemPoolInterface $fallbackPool argument of "%s()" is deprecated since Symfony 4.2, you should not pass it anymore.', __METHOD__), E_USER_DEPRECATED);
4242
$excludeRegexp = $debug;
43-
$debug = 4 < \func_num_args() && \func_get_arg(4);
43+
$debug = 4 < \func_num_args() && func_get_arg(4);
4444
}
4545
parent::__construct($phpArrayFile);
4646
$this->annotationReader = $annotationReader;

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/SerializerCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SerializerCacheWarmer extends AbstractPhpFileCacheWarmer
3636
*/
3737
public function __construct(array $loaders, string $phpArrayFile)
3838
{
39-
if (2 < \func_num_args() && \func_get_arg(2) instanceof CacheItemPoolInterface) {
39+
if (2 < \func_num_args() && func_get_arg(2) instanceof CacheItemPoolInterface) {
4040
@trigger_error(sprintf('The CacheItemPoolInterface $fallbackPool argument of "%s()" is deprecated since Symfony 4.2, you should not pass it anymore.', __METHOD__), E_USER_DEPRECATED);
4141
}
4242
parent::__construct($phpArrayFile);

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ValidatorCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ValidatorCacheWarmer extends AbstractPhpFileCacheWarmer
3737
*/
3838
public function __construct(ValidatorBuilderInterface $validatorBuilder, string $phpArrayFile)
3939
{
40-
if (2 < \func_num_args() && \func_get_arg(2) instanceof CacheItemPoolInterface) {
40+
if (2 < \func_num_args() && func_get_arg(2) instanceof CacheItemPoolInterface) {
4141
@trigger_error(sprintf('The CacheItemPoolInterface $fallbackPool argument of "%s()" is deprecated since Symfony 4.2, you should not pass it anymore.', __METHOD__), E_USER_DEPRECATED);
4242
}
4343
parent::__construct($phpArrayFile);

src/Symfony/Component/Cache/Adapter/AbstractAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function ($key, $value, $isHit) use ($defaultLifetime) {
5252
// Detect wrapped values that encode for their expiry and creation duration
5353
// For compactness, these values are packed in the key of an array using
5454
// magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F
55-
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = \key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
55+
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
5656
$item->value = $v[$k];
57-
$v = \unpack('Ve/Nc', \substr($k, 1, -1));
57+
$v = unpack('Ve/Nc', substr($k, 1, -1));
5858
$item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET;
5959
$item->metadata[CacheItem::METADATA_CTIME] = $v['c'];
6060
}

src/Symfony/Component/Cache/Adapter/ProxyAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ function ($key, $innerItem) use ($defaultLifetime, $poolHash) {
5858
// Detect wrapped values that encode for their expiry and creation duration
5959
// For compactness, these values are packed in the key of an array using
6060
// magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F
61-
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = \key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
61+
if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = key($v)) && "\x9D" === $k[0] && "\0" === $k[5] && "\x5F" === $k[9]) {
6262
$item->value = $v[$k];
63-
$v = \unpack('Ve/Nc', \substr($k, 1, -1));
63+
$v = unpack('Ve/Nc', substr($k, 1, -1));
6464
$item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET;
6565
$item->metadata[CacheItem::METADATA_CTIME] = $v['c'];
6666
} elseif ($innerItem instanceof CacheItem) {

src/Symfony/Component/Cache/CacheItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function tag($tags): ItemInterface
110110
if (!$this->isTaggable) {
111111
throw new LogicException(sprintf('Cache item "%s" comes from a non tag-aware pool: you cannot tag it.', $this->key));
112112
}
113-
if (!\is_iterable($tags)) {
113+
if (!is_iterable($tags)) {
114114
$tags = [$tags];
115115
}
116116
foreach ($tags as $tag) {

src/Symfony/Component/Cache/Traits/ArrayTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private function freeze($value, $key)
123123
if ('N;' === $value || (isset($value[2]) && ':' === $value[1])) {
124124
return serialize($value);
125125
}
126-
} elseif (!\is_scalar($value)) {
126+
} elseif (!is_scalar($value)) {
127127
try {
128128
$serialized = serialize($value);
129129
} catch (\Exception $e) {

src/Symfony/Component/Cache/Traits/PhpArrayTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function warmUp(array $values)
8686
$isStaticValue = false;
8787
}
8888
$value = var_export($value, true);
89-
} elseif (!\is_scalar($value)) {
89+
} elseif (!is_scalar($value)) {
9090
throw new InvalidArgumentException(sprintf('Cache key "%s" has non-serializable %s value.', $key, \gettype($value)));
9191
} else {
9292
$value = var_export($value, true);

src/Symfony/Component/Cache/Traits/PhpFilesTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function doSave(array $values, $lifetime)
182182
$isStaticValue = false;
183183
}
184184
$value = var_export($value, true);
185-
} elseif (!\is_scalar($value)) {
185+
} elseif (!is_scalar($value)) {
186186
throw new InvalidArgumentException(sprintf('Cache key "%s" has non-serializable %s value.', $key, \gettype($value)));
187187
} else {
188188
$value = var_export($value, true);

src/Symfony/Component/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ protected function doRenderException(\Exception $e, OutputInterface $output)
779779

780780
if (false !== strpos($message, "class@anonymous\0")) {
781781
$message = preg_replace_callback('/class@anonymous\x00.*?\.php0x?[0-9a-fA-F]++/', function ($m) {
782-
return \class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
782+
return class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
783783
}, $message);
784784
}
785785

src/Symfony/Component/Console/Helper/ProcessHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function run(OutputInterface $output, $cmd, $error = null, callable $call
5151

5252
if (!\is_array($cmd)) {
5353
@trigger_error(sprintf('Passing a command as a string to "%s()" is deprecated since Symfony 4.2, pass it the command as an array of arguments instead.', __METHOD__), E_USER_DEPRECATED);
54-
$cmd = [\method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd)];
54+
$cmd = [method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd)];
5555
}
5656

5757
if (\is_string($cmd[0] ?? null)) {

src/Symfony/Component/Console/Output/ConsoleSectionOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function clear(int $lines = null)
5050
}
5151

5252
if ($lines) {
53-
\array_splice($this->content, -($lines * 2)); // Multiply lines by 2 to cater for each new line added between content
53+
array_splice($this->content, -($lines * 2)); // Multiply lines by 2 to cater for each new line added between content
5454
} else {
5555
$lines = $this->lines;
5656
$this->content = [];

src/Symfony/Component/Console/Tests/Helper/ProcessHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ProcessHelperTest extends TestCase
2626
public function testVariousProcessRuns($expected, $cmd, $verbosity, $error)
2727
{
2828
if (\is_string($cmd)) {
29-
$cmd = \method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd);
29+
$cmd = method_exists(Process::class, 'fromShellCommandline') ? Process::fromShellCommandline($cmd) : new Process($cmd);
3030
}
3131

3232
$helper = new ProcessHelper();
@@ -99,7 +99,7 @@ public function provideCommandsAndOutput()
9999
$args = new Process(['php', '-r', 'echo 42;']);
100100
$args = $args->getCommandLine();
101101
$successOutputProcessDebug = str_replace("'php' '-r' 'echo 42;'", $args, $successOutputProcessDebug);
102-
$fromShellCommandline = \method_exists(Process::class, 'fromShellCommandline') ? [Process::class, 'fromShellCommandline'] : function ($cmd) { return new Process($cmd); };
102+
$fromShellCommandline = method_exists(Process::class, 'fromShellCommandline') ? [Process::class, 'fromShellCommandline'] : function ($cmd) { return new Process($cmd); };
103103

104104
return [
105105
['', 'php -r "echo 42;"', StreamOutput::VERBOSITY_VERBOSE, null],

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function loadClass($class)
171171

172172
private function checkClass($class, $file = null)
173173
{
174-
$exists = null === $file || \class_exists($class, false) || \interface_exists($class, false) || \trait_exists($class, false);
174+
$exists = null === $file || class_exists($class, false) || interface_exists($class, false) || trait_exists($class, false);
175175

176176
if (null !== $file && $class && '\\' === $class[0]) {
177177
$class = substr($class, 1);
@@ -189,7 +189,7 @@ private function checkClass($class, $file = null)
189189
}
190190
$name = $refl->getName();
191191

192-
if ($name !== $class && 0 === \strcasecmp($name, $class)) {
192+
if ($name !== $class && 0 === strcasecmp($name, $class)) {
193193
throw new \RuntimeException(sprintf('Case mismatch between loaded and declared class names: "%s" vs "%s".', $class, $name));
194194
}
195195

@@ -222,23 +222,23 @@ public function checkAnnotations(\ReflectionClass $refl, $class)
222222
$deprecations = [];
223223

224224
// Don't trigger deprecations for classes in the same vendor
225-
if (2 > $len = 1 + (\strpos($class, '\\') ?: \strpos($class, '_'))) {
225+
if (2 > $len = 1 + (strpos($class, '\\') ?: strpos($class, '_'))) {
226226
$len = 0;
227227
$ns = '';
228228
} else {
229-
$ns = \str_replace('_', '\\', \substr($class, 0, $len));
229+
$ns = str_replace('_', '\\', substr($class, 0, $len));
230230
}
231231

232232
// Detect annotations on the class
233233
if (false !== $doc = $refl->getDocComment()) {
234234
foreach (['final', 'deprecated', 'internal'] as $annotation) {
235-
if (false !== \strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$|\r?\n)#s', $doc, $notice)) {
235+
if (false !== strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$|\r?\n)#s', $doc, $notice)) {
236236
self::${$annotation}[$class] = isset($notice[1]) ? preg_replace('#\.?\r?\n( \*)? *(?= |\r?\n|$)#', '', $notice[1]) : '';
237237
}
238238
}
239239
}
240240

241-
$parent = \get_parent_class($class);
241+
$parent = get_parent_class($class);
242242
$parentAndOwnInterfaces = $this->getOwnInterfaces($class, $parent);
243243
if ($parent) {
244244
$parentAndOwnInterfaces[$parent] = $parent;
@@ -253,22 +253,22 @@ public function checkAnnotations(\ReflectionClass $refl, $class)
253253
}
254254

255255
// Detect if the parent is annotated
256-
foreach ($parentAndOwnInterfaces + \class_uses($class, false) as $use) {
256+
foreach ($parentAndOwnInterfaces + class_uses($class, false) as $use) {
257257
if (!isset(self::$checkedClasses[$use])) {
258258
$this->checkClass($use);
259259
}
260-
if (isset(self::$deprecated[$use]) && \strncmp($ns, \str_replace('_', '\\', $use), $len) && !isset(self::$deprecated[$class])) {
260+
if (isset(self::$deprecated[$use]) && strncmp($ns, str_replace('_', '\\', $use), $len) && !isset(self::$deprecated[$class])) {
261261
$type = class_exists($class, false) ? 'class' : (interface_exists($class, false) ? 'interface' : 'trait');
262262
$verb = class_exists($use, false) || interface_exists($class, false) ? 'extends' : (interface_exists($use, false) ? 'implements' : 'uses');
263263

264264
$deprecations[] = sprintf('The "%s" %s %s "%s" that is deprecated%s.', $class, $type, $verb, $use, self::$deprecated[$use]);
265265
}
266-
if (isset(self::$internal[$use]) && \strncmp($ns, \str_replace('_', '\\', $use), $len)) {
266+
if (isset(self::$internal[$use]) && strncmp($ns, str_replace('_', '\\', $use), $len)) {
267267
$deprecations[] = sprintf('The "%s" %s is considered internal%s. It may change without further notice. You should not use it from "%s".', $use, class_exists($use, false) ? 'class' : (interface_exists($use, false) ? 'interface' : 'trait'), self::$internal[$use], $class);
268268
}
269269
}
270270

271-
if (\trait_exists($class)) {
271+
if (trait_exists($class)) {
272272
return $deprecations;
273273
}
274274

@@ -296,7 +296,7 @@ public function checkAnnotations(\ReflectionClass $refl, $class)
296296

297297
if (isset(self::$internalMethods[$class][$method->name])) {
298298
list($declaringClass, $message) = self::$internalMethods[$class][$method->name];
299-
if (\strncmp($ns, $declaringClass, $len)) {
299+
if (strncmp($ns, $declaringClass, $len)) {
300300
$deprecations[] = sprintf('The "%s::%s()" method is considered internal%s. It may change without further notice. You should not extend it from "%s".', $declaringClass, $method->name, $message, $class);
301301
}
302302
}
@@ -324,14 +324,14 @@ public function checkAnnotations(\ReflectionClass $refl, $class)
324324
$finalOrInternal = false;
325325

326326
foreach (['final', 'internal'] as $annotation) {
327-
if (false !== \strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$|\r?\n)#s', $doc, $notice)) {
327+
if (false !== strpos($doc, $annotation) && preg_match('#\n\s+\* @'.$annotation.'(?:( .+?)\.?)?\r?\n\s+\*(?: @|/$|\r?\n)#s', $doc, $notice)) {
328328
$message = isset($notice[1]) ? preg_replace('#\.?\r?\n( \*)? *(?= |\r?\n|$)#', '', $notice[1]) : '';
329329
self::${$annotation.'Methods'}[$class][$method->name] = [$class, $message];
330330
$finalOrInternal = true;
331331
}
332332
}
333333

334-
if ($finalOrInternal || $method->isConstructor() || false === \strpos($doc, '@param') || StatelessInvocation::class === $class) {
334+
if ($finalOrInternal || $method->isConstructor() || false === strpos($doc, '@param') || StatelessInvocation::class === $class) {
335335
continue;
336336
}
337337
if (!preg_match_all('#\n\s+\* @param (.*?)(?<= )\$([a-zA-Z0-9_\x7f-\xff]++)#', $doc, $matches, PREG_SET_ORDER)) {

src/Symfony/Component/Debug/Exception/FlattenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function setMessage($message)
172172
{
173173
if (false !== strpos($message, "class@anonymous\0")) {
174174
$message = preg_replace_callback('/class@anonymous\x00.*?\.php0x?[0-9a-fA-F]++/', function ($m) {
175-
return \class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
175+
return class_exists($m[0], false) ? get_parent_class($m[0]).'@anonymous' : $m[0];
176176
}, $message);
177177
}
178178

src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ public function testPrototype()
614614
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
615615
$this->assertContains((string) new FileResource($fixturesDir.'xml'.\DIRECTORY_SEPARATOR.'services_prototype.xml'), $resources);
616616

617-
$prototypeRealPath = \realpath(__DIR__.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'Prototype');
617+
$prototypeRealPath = realpath(__DIR__.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'Prototype');
618618
$globResource = new GlobResource(
619619
$fixturesDir.'Prototype',
620620
'/*',

src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function testPrototype()
367367
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
368368
$this->assertContains((string) new FileResource($fixturesDir.'yaml'.\DIRECTORY_SEPARATOR.'services_prototype.yml'), $resources);
369369

370-
$prototypeRealPath = \realpath(__DIR__.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'Prototype');
370+
$prototypeRealPath = realpath(__DIR__.\DIRECTORY_SEPARATOR.'..'.\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR.'Prototype');
371371
$globResource = new GlobResource(
372372
$fixturesDir.'Prototype',
373373
'',

src/Symfony/Component/DependencyInjection/TypedReference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(string $id, string $type, $invalidBehavior = Contain
3434
@trigger_error(sprintf('The $requiringClass argument of "%s()" is deprecated since Symfony 4.1.', __METHOD__), E_USER_DEPRECATED);
3535

3636
$this->requiringClass = $invalidBehavior;
37-
$invalidBehavior = 3 < \func_num_args() ? \func_get_arg(3) : ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;
37+
$invalidBehavior = 3 < \func_num_args() ? func_get_arg(3) : ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE;
3838
} else {
3939
$this->name = $type === $id ? $name : null;
4040
}

0 commit comments

Comments
 (0)