Skip to content

Commit 5b431a5

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 299b56f + 5b6d32d commit 5b431a5

11 files changed

+13
-13
lines changed

AbstractExtension.php

Lines 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];

Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformer.php

Lines 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
{

Extension/Core/DataTransformer/MoneyToLocalizedStringTransformer.php

Lines 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
{

Extension/Core/DataTransformer/NumberToLocalizedStringTransformer.php

Lines 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
{

Extension/Core/DataTransformer/ValueToDuplicatesTransformer.php

Lines 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
{

Extension/Core/DataTransformer/WeekToArrayTransformer.php

Lines 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)

Extension/Core/Type/DateIntervalType.php

Lines 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 = [];

Extension/Core/Type/TimeType.php

Lines 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']) {

FormRegistryInterface.php

Lines 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

PreloadedExtension.php

Lines 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];

0 commit comments

Comments
 (0)