Skip to content

Commit c2bdad5

Browse files
minor #43299 Fix "can not" spelling (mvorisek)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- Fix "can not" spelling | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 28a438eed4 Fix "can not" spelling
2 parents eb9b819 + b079502 commit c2bdad5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private static function prepareRequest(?string $method, ?string $url, array $opt
4848
throw new InvalidArgumentException(sprintf('Invalid HTTP method "%s", only uppercase letters are accepted.', $method));
4949
}
5050
if (!$method) {
51-
throw new InvalidArgumentException('The HTTP method can not be empty.');
51+
throw new InvalidArgumentException('The HTTP method cannot be empty.');
5252
}
5353
}
5454

NoPrivateNetworkHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function __construct(HttpClientInterface $client, $subnets = null)
5858
}
5959

6060
if (!class_exists(IpUtils::class)) {
61-
throw new \LogicException(sprintf('You can not use "%s" if the HttpFoundation component is not installed. Try running "composer require symfony/http-foundation".', __CLASS__));
61+
throw new \LogicException(sprintf('You cannot use "%s" if the HttpFoundation component is not installed. Try running "composer require symfony/http-foundation".', __CLASS__));
6262
}
6363

6464
$this->client = $client;

0 commit comments

Comments
 (0)