Skip to content

Fix typos #61227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Doctrine/Tests/ManagerRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static function provideResetServiceWithNativeLazyObjectsCases(): iterable
}

/**
* When performing an entity manager lazy service reset, the reset operations may re-use the container
* When performing an entity manager lazy service reset, the reset operations may reuse the container
* to create a "fresh" service: when doing so, it can happen that the "fresh" service is itself a proxy.
*
* Because of that, the proxy will be populated with a wrapped value that is itself a proxy: repeating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ public function testGetDeprecation()
file_put_contents($path, serialize([[
'type' => 16384,
'message' => 'The "Symfony\Bundle\FrameworkBundle\Controller\Controller" class is deprecated since Symfony 4.2, use Symfony\Bundle\FrameworkBundle\Controller\AbstractController instead.',
'file' => '/home/hamza/projet/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php',
'file' => '/home/hamza/project/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php',
'line' => 17,
'trace' => [[
'file' => '/home/hamza/projet/contrib/sf/src/Controller/DefaultController.php',
'file' => '/home/hamza/project/contrib/sf/src/Controller/DefaultController.php',
'line' => 9,
'function' => 'spl_autoload_call',
]],
Expand All @@ -233,7 +233,7 @@ public function testGetDeprecation()

$tester->assertCommandIsSuccessful();
$this->assertStringContainsString('Symfony\Bundle\FrameworkBundle\Controller\Controller', $tester->getDisplay());
$this->assertStringContainsString('/home/hamza/projet/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php', $tester->getDisplay());
$this->assertStringContainsString('/home/hamza/project/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php', $tester->getDisplay());
}

public function testGetDeprecationNone()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
}
}

return preg_replace_callback(self::ASSET_URL_PATTERN, function ($matches) use ($asset, $assetMapper, $commentBlocks) {

Check failure on line 51 in src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php

View workflow job for this annotation

GitHub Actions / Psalm

NullableReturnStatement

src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php:51:16: NullableReturnStatement: The declared return type 'string' for Symfony\Component\AssetMapper\Compiler\CssAssetUrlCompiler::compile is not nullable, but the function returns 'null|string' (see https://psalm.dev/139)

Check failure on line 51 in src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php

View workflow job for this annotation

GitHub Actions / Psalm

NullableReturnStatement

src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php:51:16: NullableReturnStatement: The declared return type 'string' for Symfony\Component\AssetMapper\Compiler\CssAssetUrlCompiler::compile is not nullable, but the function returns 'null|string' (see https://psalm.dev/139)
$matchPos = $matches[0][1];

// Ignore matchs inside comments
// Ignore matches inside comments
foreach ($commentBlocks as $block) {
if ($matchPos > $block[0]) {
if ($matchPos < $block[1]) {
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Tests/ApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ public function testSetCatchErrors(bool $catchExceptions)

try {
$tester->run(['command' => 'boom']);
$this->fail('The exception is not catched.');
$this->fail('The exception is not caught.');
} catch (\Throwable $e) {
$this->assertInstanceOf(\Error::class, $e);
$this->assertSame('This is an error.', $e->getMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function testToString()
public function testToStringParent()
{
$exception = new \LogicException('This is message 1');
$exception = new \RuntimeException('This is messsage 2', 500, $exception);
$exception = new \RuntimeException('This is message 2', 500, $exception);

$flattened = FlattenException::createFromThrowable($exception);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function testLint($expression, $names, int $checks = 0, ?string $exceptio
$parser = new Parser([]);
$parser->lint($lexer->tokenize($expression), $names, $checks);

// Parser does't return anything when the correct expression is passed
// Parser doesn't return anything when the correct expression is passed
$this->expectNotToPerformAssertions();
}

Expand Down
6 changes: 3 additions & 3 deletions src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function getFileOwner($filepath)
{
$this->markAsSkippedIfPosixIsMissing();

return ($datas = posix_getpwuid($this->getFileOwnerId($filepath))) ? $datas['name'] : null;
return ($data = posix_getpwuid($this->getFileOwnerId($filepath))) ? $data['name'] : null;
}

protected function getFileGroupId($filepath)
Expand All @@ -119,8 +119,8 @@ protected function getFileGroup($filepath)
{
$this->markAsSkippedIfPosixIsMissing();

if ($datas = posix_getgrgid($this->getFileGroupId($filepath))) {
return $datas['name'];
if ($data = posix_getgrgid($this->getFileGroupId($filepath))) {
return $data['name'];
}

$this->markTestSkipped('Unable to retrieve file group name');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public function testCollectFromDeprecationsLog()
file_put_contents($path, serialize([[
'type' => 16384,
'message' => 'The "Symfony\Bundle\FrameworkBundle\Controller\Controller" class is deprecated since Symfony 4.2, use Symfony\Bundle\FrameworkBundle\Controller\AbstractController instead.',
'file' => '/home/hamza/projet/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php',
'file' => '/home/hamza/project/contrib/sf/vendor/symfony/framework-bundle/Controller/Controller.php',
'line' => 17,
'trace' => [[
'file' => '/home/hamza/projet/contrib/sf/src/Controller/DefaultController.php',
'file' => '/home/hamza/project/contrib/sf/src/Controller/DefaultController.php',
'line' => 9,
'function' => 'spl_autoload_call',
]],
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Ldap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ CHANGELOG
3.3.0
-----

* The `RenameEntryInterface` inferface is deprecated, and will be merged with `EntryManagerInterface` in 4.0.
* The `RenameEntryInterface` interface is deprecated, and will be merged with `EntryManagerInterface` in 4.0.

3.1.0
-----
Expand Down
5 changes: 2 additions & 3 deletions src/Symfony/Component/Lock/Store/MongoDbStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class MongoDbStore implements PersistingStoreInterface
* readConcern is not specified by MongoDbStore meaning the connection's settings will take effect.
* writeConcern is majority for all update queries.
* readPreference is primary for all read queries.
*
* @see https://docs.mongodb.com/manual/applications/replication/
*/
public function __construct(
Expand Down Expand Up @@ -144,7 +143,7 @@ public function __construct(
/**
* Extract default database and collection from given connection URI and remove collection querystring.
*
* Non-standard parameters are removed from the URI to improve libmongoc's re-use of connections.
* Non-standard parameters are removed from the URI to improve libmongoc's reuse of connections.
*
* @see https://php.net/mongodb.connection-handling
*/
Expand Down Expand Up @@ -296,7 +295,7 @@ public function exists(Key $key): bool
'projection' => ['_id' => 1],
]
), [
'readPreference' => new ReadPreference(ReadPreference::PRIMARY)
'readPreference' => new ReadPreference(ReadPreference::PRIMARY),
]);

return [] !== $cursor->toArray();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ private function getPayload(Email $email, Envelope $envelope): array
'to' => $this->formatAddresses($this->getRecipients($email, $envelope)),
'subject' => $email->getSubject(),
];
if ($attachements = $this->prepareAttachments($email)) {
$payload['attachment'] = $attachements;
if ($attachments = $this->prepareAttachments($email)) {
$payload['attachment'] = $attachments;
}
if ($emails = $email->getReplyTo()) {
$payload['replyTo'] = current($this->formatAddresses($emails));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ private function getPayload(Email $email, Envelope $envelope): array
'to' => $this->formatAddresses($this->getRecipients($email, $envelope)),
'subject' => $email->getSubject(),
];
if ($attachements = $this->prepareAttachments($email)) {
$payload['attachments'] = $attachements;
if ($attachments = $this->prepareAttachments($email)) {
$payload['attachments'] = $attachments;
}
if ($emails = $email->getReplyTo()) {
$payload['reply_to'] = current($this->formatAddresses($emails));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ private function getPayload(Email $email, Envelope $envelope): array
if ($email->getHtmlBody()) {
$payload['html'] = $email->getHtmlBody();
}
if ($attachements = $this->prepareAttachments($email)) {
$payload['attachments'] = $attachements;
if ($attachments = $this->prepareAttachments($email)) {
$payload['attachments'] = $attachments;
}
if ($headers = $this->getCustomHeaders($email)) {
$payload['additional_headers'] = $headers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ public function testDispatchOutOfAnotherHandlerDispatchesAndRemoveStamp()
$handlingMiddleware,
]);

$enveloppe = $eventBus->dispatch($event, [new DispatchAfterCurrentBusStamp()]);
$envelope = $eventBus->dispatch($event, [new DispatchAfterCurrentBusStamp()]);

self::assertNull($enveloppe->last(DispatchAfterCurrentBusStamp::class));
self::assertNull($envelope->last(DispatchAfterCurrentBusStamp::class));
}

private function expectHandledMessage($message): Callback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public static function sendMessageWithEmbedDataProvider(): iterable
'expectedJsonResponse' => '{"repo":null,"collection":"app.bsky.feed.post","record":{"$type":"app.bsky.feed.post","text":"Hello World!","createdAt":"2024-04-28T08:40:17.000000Z","embed":{"$type":"app.bsky.embed.images","images":[{"alt":"A fixture","image":{"$type":"blob","ref":{"$link":"bafkreibabalobzn6cd366ukcsjycp4yymjymgfxcv6xczmlgpemzkz3cfa"},"mimeType":"image\/png","size":760898}}]}}}',
];

yield 'With website preview card and all optionnal informations' => [
yield 'With website preview card and all optional informations' => [
'blueskyOptions' => (new BlueskyOptions())
->attachCard(
'https://example.com',
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Notifier/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ CHANGELOG
* The `EmailRecipientInterface` and `SmsRecipientInterface` now extend the `RecipientInterface`.
* The `EmailRecipient` and `SmsRecipient` were introduced.
* [BC BREAK] Changed the type-hint of the `$recipient` argument in `NotifierInterface::send()`,
`Notifier::getChannels()`, `ChannelInterface::notifiy()` and `ChannelInterface::supports()` to
`Notifier::getChannels()`, `ChannelInterface::notify()` and `ChannelInterface::supports()` to
`RecipientInterface`.
* Changed `EmailChannel` to only support recipients which implement the `EmailRecipientInterface`.
* Changed `SmsChannel` to only support recipients which implement the `SmsRecipientInterface`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function getLongDescription(string $class, string $property, array $conte
}

/**
* A docblock is splitted into a template marker, a short description, an optional long description and a tags section.
* A docblock is split into a template marker, a short description, an optional long description and a tags section.
*
* - The template marker is either empty, or #@+ or #@-.
* - The short description is started from a non-tag character, and until one or multiple newlines.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
],
[ // $regexpList
0 => '{^(?'
.'|(?i:([^\\.]++)\\.exampple\\.com)\\.(?'
.'|(?i:([^\\.]++)\\.example\\.com)\\.(?'
.'|/abc([^/]++)(?'
.'|(*:56)'
.'|(*:55)'
.')'
.')'
.')/?$}sD',
],
[ // $dynamicRoutes
56 => [
55 => [
[['_route' => 'r1'], ['foo', 'foo'], null, null, false, true, null],
[['_route' => 'r2'], ['foo', 'foo'], null, null, false, true, null],
[null, null, null, null, false, false, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ public static function getRouteCollections()

/* test case 13 */
$hostCollection = new RouteCollection();
$hostCollection->add('r1', (new Route('abc{foo}'))->setHost('{foo}.exampple.com'));
$hostCollection->add('r2', (new Route('abc{foo}'))->setHost('{foo}.exampple.com'));
$hostCollection->add('r1', (new Route('abc{foo}'))->setHost('{foo}.example.com'));
$hostCollection->add('r2', (new Route('abc{foo}'))->setHost('{foo}.example.com'));

/* test case 14 */
$fixedLocaleCollection = new RouteCollection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UriSafeTokenGeneratorTest extends TestCase
private const ENTROPY = 1000;

/**
* A non alpha-numeric byte string.
* A non alphanumeric byte string.
*/
private static string $bytes;

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Serializer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CHANGELOG
* Add `Default` and "class name" default groups
* Add `AbstractNormalizer::FILTER_BOOL` context option
* Add `CamelCaseToSnakeCaseNameConverter::REQUIRE_SNAKE_CASE_PROPERTIES` context option
* Deprecate `AbstractNormalizerContextBuilder::withDefaultContructorArguments(?array $defaultContructorArguments)`, use `withDefaultConstructorArguments(?array $defaultConstructorArguments)` instead (note the missing `s` character in Contructor word in deprecated method)
* Deprecate `AbstractNormalizerContextBuilder::withDefaultContructorArguments(?array $defaultContructorArguments)`, use `withDefaultConstructorArguments(?array $defaultConstructorArguments)` instead (note the missing `s` character in Constructor word in deprecated method)
* Add `XmlEncoder::CDATA_WRAPPING_PATTERN` context option

7.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ private function validateAndDenormalize(Type $type, string $currentClass, string

// This try-catch should cover all NotNormalizableValueException (and all return branches after the first
// exception) so we could try denormalizing all types of an union type. If the target type is not an union
// type, we will just re-throw the catched exception.
// type, we will just re-throw the caught exception.
// In the case of no denormalization succeeds with an union type, it will fall back to the default exception
// with the acceptable types list.
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface DenormalizableInterface
* Denormalizes the object back from an array of scalars|arrays.
*
* It is important to understand that the denormalize() call should denormalize
* recursively all child objects of the implementor.
* recursively all child objects of the implementer.
*
* @param DenormalizerInterface $denormalizer The denormalizer is given so that you
* can use it to denormalize objects contained within this object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface NormalizableInterface
* Normalizes the object into an array of scalars|arrays.
*
* It is important to understand that the normalize() call should normalize
* recursively all child objects of the implementor.
* recursively all child objects of the implementer.
*
* @param NormalizerInterface $normalizer The normalizer is given so that you
* can use it to normalize objects contained within this object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function validEncodeProvider(): iterable
'@bool-false' => false,
'@int' => 3,
'@float' => 3.4,
'@sring' => 'a',
'@string' => 'a',
],
];

Expand All @@ -104,7 +104,7 @@ public static function validEncodeProvider(): iterable
'<Bar>2</Bar>'.
'<Bar>3</Bar>'.
'<a>b</a>'.
'<scalars bool-true="1" bool-false="0" int="3" float="3.4" sring="a"/>'.
'<scalars bool-true="1" bool-false="0" int="3" float="3.4" string="a"/>'.
'</response>'."\n",
$obj,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function testNormalize()

public function testNormalizeWithChildren()
{
$exptected = [
$expected = [
'code' => null,
'title' => 'Validation Failed',
'type' => 'https://symfony.com/errors/form',
Expand Down Expand Up @@ -151,6 +151,6 @@ public function testNormalizeWithChildren()
])
);

$this->assertEquals($exptected, $this->normalizer->normalize($form));
$this->assertEquals($expected, $this->normalizer->normalize($form));
}
}
2 changes: 1 addition & 1 deletion src/Symfony/Component/String/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ CHANGELOG
* added `LazyString` which provides memoizing stringable objects
* The component is not marked as `@experimental` anymore
* added the `s()` helper method to get either an `UnicodeString` or `ByteString` instance,
depending of the input string UTF-8 compliancy
depending of the input string UTF-8 compliance
* added `$cut` parameter to `Symfony\Component\String\AbstractString::truncate()`
* added `AbstractString::containsAny()`
* allow passing a string of custom characters to `ByteString::fromRandom()`
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/TypeInfo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $type->isIdentifiedBy(Foo::class, Bar::class);
$type->isIdentifiedBy(TypeIdentifier::OBJECT);
$type->isIdentifiedBy('float');

// You can also check that a type satifies specific conditions
// You can also check that a type satisfies specific conditions
$type->isSatisfiedBy(fn (Type $type): bool => !$type->isNullable() && $type->isIdentifiedBy(TypeIdentifier::INT));
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ syck: |


---
test: Literal perserves newlines
test: Literal preserves newlines
todo: true
spec: 2.13
yaml: |
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy