Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02e6f4d

Browse filesBrowse 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 ------- 28a438e Fix "can not" spelling
2 parents 055b38f + 28a438e commit 02e6f4d
Copy full SHA for 02e6f4d

File tree

Expand file treeCollapse file tree

54 files changed

+77
-80
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

54 files changed

+77
-80
lines changed

‎src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/Translation/TwigExtractorTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getExtractData()
8282
['{{ ("another " ~ "new " ~ "key") | trans() }}', ['another new key' => 'messages']],
8383
['{{ ("new" ~ " key") | trans(domain="domain") }}', ['new key' => 'domain']],
8484
['{{ ("another " ~ "new " ~ "key") | trans(domain="domain") }}', ['another new key' => 'domain']],
85-
// if it has a variable or other expression, we can not extract it
85+
// if it has a variable or other expression, we cannot extract it
8686
['{% set foo = "new" %} {{ ("new " ~ foo ~ "key") | trans() }}', []],
8787
['{{ ("foo " ~ "new"|trans ~ "key") | trans() }}', ['new' => 'messages']],
8888
];

‎src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private function absoluteSymlinkWithFallback(string $originDir, string $targetDi
233233
/**
234234
* Creates symbolic link.
235235
*
236-
* @throws IOException if link can not be created
236+
* @throws IOException if link cannot be created
237237
*/
238238
private function symlink(string $originDir, string $targetDir, bool $relative = false)
239239
{

‎src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ protected function validateInput(InputInterface $input)
208208

209209
$name = $input->getArgument('name');
210210
if ((null !== $name) && ($optionsCount > 0)) {
211-
throw new InvalidArgumentException('The options tags, tag, parameters & parameter can not be combined with the service name argument.');
211+
throw new InvalidArgumentException('The options tags, tag, parameters & parameter cannot be combined with the service name argument.');
212212
} elseif ((null === $name) && $optionsCount > 1) {
213-
throw new InvalidArgumentException('The options tags, tag, parameters & parameter can not be combined together.');
213+
throw new InvalidArgumentException('The options tags, tag, parameters & parameter cannot be combined together.');
214214
}
215215
}
216216

‎src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ protected function addFlash(string $type, $message): void
211211
try {
212212
$this->container->get('request_stack')->getSession()->getFlashBag()->add($type, $message);
213213
} catch (SessionNotFoundException $e) {
214-
throw new \LogicException('You can not use the addFlash method if sessions are disabled. Enable them in "config/packages/framework.yaml".', 0, $e);
214+
throw new \LogicException('You cannot use the addFlash method if sessions are disabled. Enable them in "config/packages/framework.yaml".', 0, $e);
215215
}
216216
}
217217

@@ -252,7 +252,7 @@ protected function denyAccessUnlessGranted($attribute, $subject = null, string $
252252
protected function renderView(string $view, array $parameters = []): string
253253
{
254254
if (!$this->container->has('twig')) {
255-
throw new \LogicException('You can not use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
255+
throw new \LogicException('You cannot use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
256256
}
257257

258258
return $this->container->get('twig')->render($view, $parameters);
@@ -310,7 +310,7 @@ protected function renderForm(string $view, array $parameters = [], Response $re
310310
protected function stream(string $view, array $parameters = [], StreamedResponse $response = null): StreamedResponse
311311
{
312312
if (!$this->container->has('twig')) {
313-
throw new \LogicException('You can not use the "stream" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
313+
throw new \LogicException('You cannot use the "stream" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
314314
}
315315

316316
$twig = $this->container->get('twig');
@@ -352,7 +352,7 @@ protected function createNotFoundException(string $message = 'Not Found', \Throw
352352
protected function createAccessDeniedException(string $message = 'Access Denied.', \Throwable $previous = null): AccessDeniedException
353353
{
354354
if (!class_exists(AccessDeniedException::class)) {
355-
throw new \LogicException('You can not use the "createAccessDeniedException" method if the Security component is not available. Try running "composer require symfony/security-bundle".');
355+
throw new \LogicException('You cannot use the "createAccessDeniedException" method if the Security component is not available. Try running "composer require symfony/security-bundle".');
356356
}
357357

358358
return new AccessDeniedException($message, $previous);
@@ -462,7 +462,7 @@ protected function dispatchMessage(object $message, array $stamps = []): Envelop
462462
protected function addLink(Request $request, LinkInterface $link): void
463463
{
464464
if (!class_exists(AddLinkHeaderListener::class)) {
465-
throw new \LogicException('You can not use the "addLink" method if the WebLink component is not available. Try running "composer require symfony/web-link".');
465+
throw new \LogicException('You cannot use the "addLink" method if the WebLink component is not available. Try running "composer require symfony/web-link".');
466466
}
467467

468468
if (null === $linkProvider = $request->attributes->get('_links')) {

‎src/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Controller/TemplateController.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(Environment $twig = null)
4242
public function templateAction(string $template, int $maxAge = null, int $sharedAge = null, bool $private = null, array $context = []): Response
4343
{
4444
if (null === $this->twig) {
45-
throw new \LogicException('You can not use the TemplateController if the Twig Bundle is not available.');
45+
throw new \LogicException('You cannot use the TemplateController if the Twig Bundle is not available.');
4646
}
4747

4848
$response = new Response($this->twig->render($template, $context));

‎src/Symfony/Bundle/FrameworkBundle/Tests/Controller/TemplateControllerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Tests/Controller/TemplateControllerTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testTwig()
3535
public function testNoTwig()
3636
{
3737
$this->expectException(\LogicException::class);
38-
$this->expectExceptionMessage('You can not use the TemplateController if the Twig Bundle is not available.');
38+
$this->expectExceptionMessage('You cannot use the TemplateController if the Twig Bundle is not available.');
3939
$controller = new TemplateController();
4040

4141
$controller->templateAction('mytemplate')->getContent();

‎src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Tests/Adapter/NullAdapterTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testGetItems()
6666
$itemKey = $item->getKey();
6767

6868
$this->assertEquals($itemKey, $key, 'Keys must be preserved when fetching multiple items');
69-
$this->assertContains($key, $keys, 'Cache key can not change.');
69+
$this->assertContains($key, $keys, 'Cache key cannot change.');
7070
$this->assertFalse($item->isHit());
7171

7272
// Remove $key for $keys

‎src/Symfony/Component/Config/Definition/PrototypedArrayNode.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Config/Definition/PrototypedArrayNode.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function getPrototype()
159159
*/
160160
public function addChild(NodeInterface $node)
161161
{
162-
throw new Exception('A prototyped array node can not have concrete children.');
162+
throw new Exception('A prototyped array node cannot have concrete children.');
163163
}
164164

165165
/**

‎src/Symfony/Component/Console/Command/Command.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Command/Command.php
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ public static function getDefaultName()
7676
return $class === $r->class ? static::$defaultName : null;
7777
}
7878

79-
/**
80-
* @return string|null
81-
*/
8279
public static function getDefaultDescription(): ?string
8380
{
8481
$class = static::class;
@@ -173,7 +170,7 @@ public function getApplication()
173170
/**
174171
* Checks whether the command is enabled or not in the current environment.
175172
*
176-
* Override this to check for x or y and return false if the command can not
173+
* Override this to check for x or y and return false if the command cannot
177174
* run properly under the current conditions.
178175
*
179176
* @return bool

‎src/Symfony/Component/Console/Question/Question.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Question/Question.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function setHidden(bool $hidden)
111111
}
112112

113113
/**
114-
* In case the response can not be hidden, whether to fallback on non-hidden question or not.
114+
* In case the response cannot be hidden, whether to fallback on non-hidden question or not.
115115
*
116116
* @return bool
117117
*/
@@ -121,7 +121,7 @@ public function isHiddenFallback()
121121
}
122122

123123
/**
124-
* Sets whether to fallback on non-hidden question if the response can not be hidden.
124+
* Sets whether to fallback on non-hidden question if the response cannot be hidden.
125125
*
126126
* @return $this
127127
*/

‎src/Symfony/Component/Console/Tests/ApplicationTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/ApplicationTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function normalizeLineBreaks($text)
9292
/**
9393
* Replaces the dynamic placeholders of the command help text with a static version.
9494
* The placeholder %command.full_name% includes the script path that is not predictable
95-
* and can not be tested against.
95+
* and cannot be tested against.
9696
*/
9797
protected function ensureStaticCommandHelp(Application $application)
9898
{

‎src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Descriptor/AbstractDescriptorTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testDescribeApplication(Application $application, $expectedDescr
5050
{
5151
// Replaces the dynamic placeholders of the command help text with a static version.
5252
// The placeholder %command.full_name% includes the script path that is not predictable
53-
// and can not be tested against.
53+
// and cannot be tested against.
5454
foreach ($application->all() as $command) {
5555
$command->setHelp(str_replace('%command.full_name%', 'app/console %command.name%', $command->getHelp()));
5656
}

‎src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Input/InputArgumentTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testIsArray()
5252
$argument = new InputArgument('foo', InputArgument::OPTIONAL | InputArgument::IS_ARRAY);
5353
$this->assertTrue($argument->isArray(), '->isArray() returns true if the argument can be an array');
5454
$argument = new InputArgument('foo', InputArgument::OPTIONAL);
55-
$this->assertFalse($argument->isArray(), '->isArray() returns false if the argument can not be an array');
55+
$this->assertFalse($argument->isArray(), '->isArray() returns false if the argument cannot be an array');
5656
}
5757

5858
public function testGetDescription()

‎src/Symfony/Component/Console/Tests/Input/InputOptionTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Tests/Input/InputOptionTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testIsArray()
116116
$option = new InputOption('foo', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
117117
$this->assertTrue($option->isArray(), '->isArray() returns true if the option can be an array');
118118
$option = new InputOption('foo', null, InputOption::VALUE_NONE);
119-
$this->assertFalse($option->isArray(), '->isArray() returns false if the option can not be an array');
119+
$this->assertFalse($option->isArray(), '->isArray() returns false if the option cannot be an array');
120120
}
121121

122122
public function testGetDescription()

‎src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/ContainerBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public function setAlias(string $alias, $id)
846846
}
847847

848848
if ($alias === (string) $id) {
849-
throw new InvalidArgumentException(sprintf('An alias can not reference itself, got a circular reference on "%s".', $alias));
849+
throw new InvalidArgumentException(sprintf('An alias cannot reference itself, got a circular reference on "%s".', $alias));
850850
}
851851

852852
unset($this->definitions[$alias], $this->removedIds[$alias]);

‎src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ interface ParameterBagInterface
2424
/**
2525
* Clears all parameters.
2626
*
27-
* @throws LogicException if the ParameterBagInterface can not be cleared
27+
* @throws LogicException if the ParameterBagInterface cannot be cleared
2828
*/
2929
public function clear();
3030

3131
/**
3232
* Adds parameters to the service container parameters.
3333
*
34-
* @throws LogicException if the parameter can not be added
34+
* @throws LogicException if the parameter cannot be added
3535
*/
3636
public function add(array $parameters);
3737

@@ -61,7 +61,7 @@ public function remove(string $name);
6161
*
6262
* @param array|bool|string|int|float|null $value The parameter value
6363
*
64-
* @throws LogicException if the parameter can not be set
64+
* @throws LogicException if the parameter cannot be set
6565
*/
6666
public function set(string $name, $value);
6767

‎src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public function testAliases()
290290
$builder->setAlias('foobar', 'foobar');
291291
$this->fail('->setAlias() throws an InvalidArgumentException if the alias references itself');
292292
} catch (\InvalidArgumentException $e) {
293-
$this->assertEquals('An alias can not reference itself, got a circular reference on "foobar".', $e->getMessage(), '->setAlias() throws an InvalidArgumentException if the alias references itself');
293+
$this->assertEquals('An alias cannot reference itself, got a circular reference on "foobar".', $e->getMessage(), '->setAlias() throws an InvalidArgumentException if the alias references itself');
294294
}
295295

296296
try {

‎src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ public function testFilesExistsFails()
409409
chdir($basePath);
410410
$file = str_repeat('T', $maxPathLength - \strlen($basePath) + 1);
411411
$path = $basePath.$file;
412-
exec('TYPE NUL >>'.$file); // equivalent of touch, we can not use the php touch() here because it suffers from the same limitation
412+
exec('TYPE NUL >>'.$file); // equivalent of touch, we cannot use the php touch() here because it suffers from the same limitation
413413
$this->longPathNamesWindows[] = $path; // save this so we can clean up later
414414
chdir($oldPath);
415415
$this->filesystem->exists($path);

‎src/Symfony/Component/Form/AbstractExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/AbstractExtension.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getType(string $name)
5757
}
5858

5959
if (!isset($this->types[$name])) {
60-
throw new InvalidArgumentException(sprintf('The type "%s" can not be loaded by this extension.', $name));
60+
throw new InvalidArgumentException(sprintf('The type "%s" cannot be loaded by this extension.', $name));
6161
}
6262

6363
return $this->types[$name];

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function reverseTransform($value)
165165
*
166166
* @return \IntlDateFormatter
167167
*
168-
* @throws TransformationFailedException in case the date formatter can not be constructed
168+
* @throws TransformationFailedException in case the date formatter cannot be constructed
169169
*/
170170
protected function getIntlDateFormatter(bool $ignoreTimezone = false)
171171
{

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(?int $scale = 2, ?bool $grouping = true, ?int $round
3838
* @return string
3939
*
4040
* @throws TransformationFailedException if the given value is not numeric or
41-
* if the value can not be transformed
41+
* if the value cannot be transformed
4242
*/
4343
public function transform($value)
4444
{
@@ -60,7 +60,7 @@ public function transform($value)
6060
* @return int|float|null
6161
*
6262
* @throws TransformationFailedException if the given value is not a string
63-
* or if the value can not be transformed
63+
* or if the value cannot be transformed
6464
*/
6565
public function reverseTransform($value)
6666
{

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function __construct(int $scale = null, ?bool $grouping = false, ?int $ro
8181
* @return string
8282
*
8383
* @throws TransformationFailedException if the given value is not numeric
84-
* or if the value can not be transformed
84+
* or if the value cannot be transformed
8585
*/
8686
public function transform($value)
8787
{
@@ -114,7 +114,7 @@ public function transform($value)
114114
* @return int|float|null
115115
*
116116
* @throws TransformationFailedException if the given value is not a string
117-
* or if the value can not be transformed
117+
* or if the value cannot be transformed
118118
*/
119119
public function reverseTransform($value)
120120
{

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function transform($value)
5050
* @return mixed
5151
*
5252
* @throws TransformationFailedException if the given value is not an array or
53-
* if the given array can not be transformed
53+
* if the given array cannot be transformed
5454
*/
5555
public function reverseTransform($array)
5656
{

‎src/Symfony/Component/Form/Extension/Core/DataTransformer/WeekToArrayTransformer.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/DataTransformer/WeekToArrayTransformer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function transform($value)
5858
*
5959
* @return string|null A week date string following the format Y-\WW
6060
*
61-
* @throws TransformationFailedException If the given value can not be merged in a valid week date string,
61+
* @throws TransformationFailedException If the given value cannot be merged in a valid week date string,
6262
* or if the obtained week date does not exists
6363
*/
6464
public function reverseTransform($value)

‎src/Symfony/Component/Form/Extension/Core/Type/DateIntervalType.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/DateIntervalType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5555
throw new InvalidConfigurationException('The single_text widget does not support invertible intervals.');
5656
}
5757
if ($options['with_weeks'] && $options['with_days']) {
58-
throw new InvalidConfigurationException('You can not enable weeks and days fields together.');
58+
throw new InvalidConfigurationException('You cannot enable weeks and days fields together.');
5959
}
6060
$format = 'P';
6161
$parts = [];

‎src/Symfony/Component/Form/Extension/Core/Type/TimeType.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/TimeType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
4343
$format = 'H';
4444

4545
if ($options['with_seconds'] && !$options['with_minutes']) {
46-
throw new InvalidConfigurationException('You can not disable minutes if you have enabled seconds.');
46+
throw new InvalidConfigurationException('You cannot disable minutes if you have enabled seconds.');
4747
}
4848

4949
if (null !== $options['reference_date'] && $options['reference_date']->getTimezone()->getName() !== $options['model_timezone']) {

‎src/Symfony/Component/Form/FormRegistryInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormRegistryInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface FormRegistryInterface
2525
*
2626
* @return ResolvedFormTypeInterface
2727
*
28-
* @throws Exception\InvalidArgumentException if the type can not be retrieved from any extension
28+
* @throws Exception\InvalidArgumentException if the type cannot be retrieved from any extension
2929
*/
3030
public function getType(string $name);
3131

‎src/Symfony/Component/Form/PreloadedExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/PreloadedExtension.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(array $types, array $typeExtensions, FormTypeGuesser
4646
public function getType(string $name)
4747
{
4848
if (!isset($this->types[$name])) {
49-
throw new InvalidArgumentException(sprintf('The type "%s" can not be loaded by this extension.', $name));
49+
throw new InvalidArgumentException(sprintf('The type "%s" cannot be loaded by this extension.', $name));
5050
}
5151

5252
return $this->types[$name];

‎src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ResolvedFormTypeFactoryInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface ResolvedFormTypeFactoryInterface
3030
* @return ResolvedFormTypeInterface
3131
*
3232
* @throws Exception\UnexpectedTypeException if the types parent {@link FormTypeInterface::getParent()} is not a string
33-
* @throws Exception\InvalidArgumentException if the types parent can not be retrieved from any extension
33+
* @throws Exception\InvalidArgumentException if the types parent cannot be retrieved from any extension
3434
*/
3535
public function createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null);
3636
}

‎src/Symfony/Component/HttpClient/HttpClientTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/HttpClientTrait.php
+1-1Lines 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

‎src/Symfony/Component/HttpClient/NoPrivateNetworkHttpClient.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/NoPrivateNetworkHttpClient.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.