diff --git a/src/Symfony/Bridge/Doctrine/Tests/ManagerRegistryTest.php b/src/Symfony/Bridge/Doctrine/Tests/ManagerRegistryTest.php index 4803e6acaf0af..53caa9da42e77 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/ManagerRegistryTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/ManagerRegistryTest.php @@ -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 diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php index d21d4d113d2e6..9b70c7bb34819 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Functional/ContainerDebugCommandTest.php @@ -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', ]], @@ -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() diff --git a/src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php b/src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php index 28b06508a6876..dcaec8b4abc1d 100644 --- a/src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php +++ b/src/Symfony/Component/AssetMapper/Compiler/CssAssetUrlCompiler.php @@ -51,7 +51,7 @@ public function compile(string $content, MappedAsset $asset, AssetMapperInterfac return preg_replace_callback(self::ASSET_URL_PATTERN, function ($matches) use ($asset, $assetMapper, $commentBlocks) { $matchPos = $matches[0][1]; - // Ignore matchs inside comments + // Ignore matches inside comments foreach ($commentBlocks as $block) { if ($matchPos > $block[0]) { if ($matchPos < $block[1]) { diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index 5e6f4733049fc..f7ac71ef54f72 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -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()); diff --git a/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php b/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php index c6efb3c6774bd..6f86d48f93592 100644 --- a/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php +++ b/src/Symfony/Component/ErrorHandler/Tests/Exception/FlattenExceptionTest.php @@ -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); diff --git a/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php b/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php index 0f1c893ca038e..8677c035d7043 100644 --- a/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php +++ b/src/Symfony/Component/ExpressionLanguage/Tests/ParserTest.php @@ -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(); } diff --git a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php index ce9176a4713e0..0f060a12c4e72 100644 --- a/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php +++ b/src/Symfony/Component/Filesystem/Tests/FilesystemTestCase.php @@ -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) @@ -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'); diff --git a/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php b/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php index 67dd853b40d2b..10265ae76adae 100644 --- a/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php +++ b/src/Symfony/Component/HttpKernel/Tests/DataCollector/LoggerDataCollectorTest.php @@ -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', ]], diff --git a/src/Symfony/Component/Ldap/CHANGELOG.md b/src/Symfony/Component/Ldap/CHANGELOG.md index 9f1bb9f16b1fc..2537af5a8b7fb 100644 --- a/src/Symfony/Component/Ldap/CHANGELOG.md +++ b/src/Symfony/Component/Ldap/CHANGELOG.md @@ -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 ----- diff --git a/src/Symfony/Component/Lock/Store/MongoDbStore.php b/src/Symfony/Component/Lock/Store/MongoDbStore.php index d015ea5fa269b..91c0f8a538c41 100644 --- a/src/Symfony/Component/Lock/Store/MongoDbStore.php +++ b/src/Symfony/Component/Lock/Store/MongoDbStore.php @@ -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( @@ -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 */ @@ -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(); diff --git a/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php b/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php index 84404ac02ff5a..e3b329f0121da 100644 --- a/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php +++ b/src/Symfony/Component/Mailer/Bridge/Brevo/Transport/BrevoApiTransport.php @@ -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)); diff --git a/src/Symfony/Component/Mailer/Bridge/Resend/Transport/ResendApiTransport.php b/src/Symfony/Component/Mailer/Bridge/Resend/Transport/ResendApiTransport.php index 3908dcaf9e385..9dcf95f36dc9c 100644 --- a/src/Symfony/Component/Mailer/Bridge/Resend/Transport/ResendApiTransport.php +++ b/src/Symfony/Component/Mailer/Bridge/Resend/Transport/ResendApiTransport.php @@ -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)); diff --git a/src/Symfony/Component/Mailer/Bridge/Scaleway/Transport/ScalewayApiTransport.php b/src/Symfony/Component/Mailer/Bridge/Scaleway/Transport/ScalewayApiTransport.php index b1bf707e3b572..c067056d07b0f 100644 --- a/src/Symfony/Component/Mailer/Bridge/Scaleway/Transport/ScalewayApiTransport.php +++ b/src/Symfony/Component/Mailer/Bridge/Scaleway/Transport/ScalewayApiTransport.php @@ -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; diff --git a/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php b/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php index 29bfea58c4153..1106cb277ba9c 100644 --- a/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php +++ b/src/Symfony/Component/Messenger/Tests/Middleware/DispatchAfterCurrentBusMiddlewareTest.php @@ -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 diff --git a/src/Symfony/Component/Notifier/Bridge/Bluesky/Tests/BlueskyTransportTest.php b/src/Symfony/Component/Notifier/Bridge/Bluesky/Tests/BlueskyTransportTest.php index b3aad04279e93..67f947e0fa215 100644 --- a/src/Symfony/Component/Notifier/Bridge/Bluesky/Tests/BlueskyTransportTest.php +++ b/src/Symfony/Component/Notifier/Bridge/Bluesky/Tests/BlueskyTransportTest.php @@ -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', diff --git a/src/Symfony/Component/Notifier/CHANGELOG.md b/src/Symfony/Component/Notifier/CHANGELOG.md index 5b16bedfcc18e..a01a5d8e75997 100644 --- a/src/Symfony/Component/Notifier/CHANGELOG.md +++ b/src/Symfony/Component/Notifier/CHANGELOG.md @@ -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`. diff --git a/src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php b/src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php index afe29bec26117..e4be0747aa753 100644 --- a/src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php +++ b/src/Symfony/Component/PropertyInfo/Extractor/PhpStanExtractor.php @@ -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. diff --git a/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher13.php b/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher13.php index 63252943df31c..466550c332370 100644 --- a/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher13.php +++ b/src/Symfony/Component/Routing/Tests/Fixtures/dumper/compiled_url_matcher13.php @@ -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], diff --git a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php index d6be915a02899..1bb2c2e3088cb 100644 --- a/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php +++ b/src/Symfony/Component/Routing/Tests/Matcher/Dumper/CompiledUrlMatcherDumperTest.php @@ -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(); diff --git a/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php b/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php index 3ef3fceb2f61c..b9a3a235573f6 100644 --- a/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php +++ b/src/Symfony/Component/Security/Csrf/Tests/TokenGenerator/UriSafeTokenGeneratorTest.php @@ -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; diff --git a/src/Symfony/Component/Serializer/CHANGELOG.md b/src/Symfony/Component/Serializer/CHANGELOG.md index 5f6482a90dc72..31390598f087c 100644 --- a/src/Symfony/Component/Serializer/CHANGELOG.md +++ b/src/Symfony/Component/Serializer/CHANGELOG.md @@ -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 diff --git a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php index 738dfaccf3b9e..0bb659f1bda95 100644 --- a/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/AbstractObjectNormalizer.php @@ -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 { diff --git a/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php b/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php index 48df976242b72..4a9e8ac2c57d5 100644 --- a/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php @@ -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 diff --git a/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php b/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php index 7be59866879b2..40461170f81d9 100644 --- a/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php +++ b/src/Symfony/Component/Serializer/Normalizer/NormalizableInterface.php @@ -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 diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php index 78699983f7592..ada3b1a8c6bca 100644 --- a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php @@ -90,7 +90,7 @@ public static function validEncodeProvider(): iterable '@bool-false' => false, '@int' => 3, '@float' => 3.4, - '@sring' => 'a', + '@string' => 'a', ], ]; @@ -104,7 +104,7 @@ public static function validEncodeProvider(): iterable '2'. '3'. 'b'. - ''. + ''. ''."\n", $obj, ]; diff --git a/src/Symfony/Component/Serializer/Tests/Normalizer/FormErrorNormalizerTest.php b/src/Symfony/Component/Serializer/Tests/Normalizer/FormErrorNormalizerTest.php index bc18125cf93cd..1b50584b6df4c 100644 --- a/src/Symfony/Component/Serializer/Tests/Normalizer/FormErrorNormalizerTest.php +++ b/src/Symfony/Component/Serializer/Tests/Normalizer/FormErrorNormalizerTest.php @@ -77,7 +77,7 @@ public function testNormalize() public function testNormalizeWithChildren() { - $exptected = [ + $expected = [ 'code' => null, 'title' => 'Validation Failed', 'type' => 'https://symfony.com/errors/form', @@ -151,6 +151,6 @@ public function testNormalizeWithChildren() ]) ); - $this->assertEquals($exptected, $this->normalizer->normalize($form)); + $this->assertEquals($expected, $this->normalizer->normalize($form)); } } diff --git a/src/Symfony/Component/String/CHANGELOG.md b/src/Symfony/Component/String/CHANGELOG.md index 0782ae21bb576..141036ce8c916 100644 --- a/src/Symfony/Component/String/CHANGELOG.md +++ b/src/Symfony/Component/String/CHANGELOG.md @@ -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()` diff --git a/src/Symfony/Component/TypeInfo/README.md b/src/Symfony/Component/TypeInfo/README.md index d9b3a2e5bbf2f..f549bb3c56849 100644 --- a/src/Symfony/Component/TypeInfo/README.md +++ b/src/Symfony/Component/TypeInfo/README.md @@ -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)); ``` diff --git a/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml b/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml index 2acc4998e207e..ad1284292bcd0 100644 --- a/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml +++ b/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml @@ -365,7 +365,7 @@ syck: | --- -test: Literal perserves newlines +test: Literal preserves newlines todo: true spec: 2.13 yaml: | 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