8000 Fix CS · symfony/symfony@2adacbc · GitHub
[go: up one dir, main page]

Skip to content

Commit 2adacbc

Browse files
committed
Fix CS
1 parent 4d6ea77 commit 2adacbc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/HttpClient/MockHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function request(string $method, string $url, array $options = []): Respo
6969
}
7070

7171
if (!$response instanceof ResponseInterface) {
72-
throw new TransportException(\sprintf('The response factory passed to MockHttpClient must return/yield an instance of ResponseInterface, "%s" given.', \is_object($response) ? \get_class($response) : \gettype($response)));
72+
throw new TransportException(sprintf('The response factory passed to MockHttpClient must return/yield an instance of ResponseInterface, "%s" given.', \is_object($response) ? \get_class($response) : \gettype($response)));
7373
}
7474

7575
return MockResponse::fromRequest($method, $url, $options, $response);

src/Symfony/Component/Serializer/Serializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function __construct(array $normalizers = [], array $encoders = [])
8686

8787
if (!($normalizer instanceof NormalizerInterface || $normalizer instanceof DenormalizerInterface)) {
8888
@trigger_error(sprintf('Passing normalizers ("%s") which do not implement either "%s" or "%s" has been deprecated since Symfony 4.2.', \get_class($normalizer), NormalizerInterface::class, DenormalizerInterface::class), E_USER_DEPRECATED);
89-
// throw new \InvalidArgumentException(\sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), NormalizerInterface::class, DenormalizerInterface::class));
89+
// throw new \InvalidArgumentException(sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), NormalizerInterface::class, DenormalizerInterface::class));
9090
}
9191
}
9292
$this->normalizers = $normalizers;
@@ -106,7 +106,7 @@ public function __construct(array $normalizers = [], array $encoders = [])
106106

107107
if (!($encoder instanceof EncoderInterface || $encoder instanceof DecoderInterface)) {
108108
@trigger_error(sprintf('Passing encoders ("%s") which do not implement either "%s" or "%s" has been deprecated since Symfony 4.2.', \get_class($encoder), EncoderInterface::class, DecoderInterface::class), E_USER_DEPRECATED);
109-
// throw new \InvalidArgumentException(\sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), EncoderInterface::class, DecoderInterface::class));
109+
// throw new \InvalidArgumentException(sprintf('The class "%s" does not implement "%s" or "%s".', \get_class($normalizer), EncoderInterface::class, DecoderInterface::class));
110110
}
111111
}
112112
$this->encoder = new ChainEncoder($realEncoders);

0 commit comments

Comments
 (0)
0