Skip to content

Commit c139991

Browse files
committed
fix code style
1 parent 997c3eb commit c139991

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ private function getArgumentsAsPhp(\DOMElement $node, string $name, string $file
491491
break;
492492
case 'expression':
493493
if (!class_exists(Expression::class)) {
494-
throw new \LogicException(sprintf('The type="expression" attribute cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".'));
494+
throw new \LogicException('The type="expression" attribute cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".');
495495
}
496496

497497
$arguments[$key] = new Expression($arg->nodeValue);

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ private function resolveServices($value, string $file, bool $isParameter = false
813813
}
814814
} elseif (\is_string($value) && 0 === strpos($value, '@=')) {
815815
if (!class_exists(Expression::class)) {
816-
throw new \LogicException(sprintf('The "@=" expression syntax cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".'));
816+
throw new \LogicException('The "@=" expression syntax cannot be used without the ExpressionLanguage component. Try running "composer require symfony/expression-language".');
817817
}
818818

819819
return new Expression(substr($value, 2));

Tests/Fixtures/CheckTypeDeclarationsPass/Foo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function createBarArguments(\stdClass $stdClass, \stdClass $stdCla
1616

1717
public static function createCallable(): callable
1818
{
19-
return function() {};
19+
return function () {};
2020
}
2121

2222
public static function createArray(): array

Tests/Fixtures/DeprecatedClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Tests\Fixtures;
1313

14-
@trigger_error('deprecated', E_USER_DEPRECATED);
14+
@trigger_error('deprecated', \E_USER_DEPRECATED);
1515

1616
class DeprecatedClass
1717
{

Tests/Fixtures/FactoryDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class FactoryDummy extends FactoryParent
1515
{
16-
public static function createFactory(): FactoryDummy
16+
public static function createFactory(): self
1717
{
1818
}
1919

Tests/Fixtures/includes/MultipleArgumentsOptionalScalarNotReallyOptional.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ public function __construct(A $a, $foo = 'default_val', Lille $lille)
1111
{
1212
}
1313
}
14-

Tests/Fixtures/includes/autowiring_classes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Psr\Log\LoggerInterface;
66

7-
if (PHP_VERSION_ID >= 80000) {
7+
if (\PHP_VERSION_ID >= 80000) {
88
require __DIR__.'/uniontype_classes.php';
99
}
1010

@@ -275,6 +275,7 @@ public function setFoo(Foo $foo)
275275

276276
/**
277277
* @required
278+
*
278279
* @return static
279280
*/
280281
public function withFoo1(Foo $foo)
@@ -284,6 +285,7 @@ public function withFoo1(Foo $foo)
284285

285286
/**
286287
* @required
288+
*
287289
* @return static
288290
*/
289291
public function withFoo2(Foo $foo)

0 commit comments

Comments
 (0)