From a46cff26c6d156347f0d27322b2e9f698087843b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Thu, 10 Dec 2020 17:34:26 +0100 Subject: [PATCH] Fix CS in changelogs --- UPGRADE-4.0.md | 17 +++---- UPGRADE-4.4.md | 2 +- UPGRADE-5.0.md | 4 +- src/Symfony/Bridge/Monolog/CHANGELOG.md | 6 +-- src/Symfony/Component/Console/CHANGELOG.md | 32 ++++++------ src/Symfony/Component/Debug/CHANGELOG.md | 49 +++++++++---------- .../DependencyInjection/CHANGELOG.md | 5 +- src/Symfony/Component/DomCrawler/CHANGELOG.md | 48 +++++++++--------- src/Symfony/Component/Ldap/CHANGELOG.md | 2 +- .../Component/PropertyAccess/CHANGELOG.md | 6 +-- .../Component/PropertyInfo/CHANGELOG.md | 8 +-- 11 files changed, 88 insertions(+), 91 deletions(-) diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index fa37fba3a1..a7e49d469c 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -250,9 +250,9 @@ DependencyInjection DoctrineBridge -------------- -* The `Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandler` and - `Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandlerSchema` have been removed. Use - `Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler` instead. + * The `Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandler` and + `Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionHandlerSchema` have been removed. Use + `Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler` instead. EventDispatcher --------------- @@ -287,9 +287,9 @@ Finder Form ---- -* The values of the `FormEvents::*` constants have been updated to match the - constant names. You should only update your application if you relied on the - constant values instead of their names. + * The values of the `FormEvents::*` constants have been updated to match the + constant names. You should only update your application if you relied on the + constant values instead of their names. * The `choices_as_values` option of the `ChoiceType` has been removed. @@ -817,8 +817,8 @@ Translation TwigBundle ---------- -* The `ContainerAwareRuntimeLoader` class has been removed. Use the - Twig `Twig_ContainerRuntimeLoader` class instead. + * The `ContainerAwareRuntimeLoader` class has been removed. Use the + Twig `Twig_ContainerRuntimeLoader` class instead. * Removed `DebugCommand` in favor of `Symfony\Bridge\Twig\Command\DebugCommand`. @@ -870,7 +870,6 @@ TwigBridge * Removed `LintCommand::set/getTwigEnvironment`. Pass an instance of `Twig\Environment` as first argument of the constructor instead. - Validator --------- diff --git a/UPGRADE-4.4.md b/UPGRADE-4.4.md index 2e81075a42..c016019274 100644 --- a/UPGRADE-4.4.md +++ b/UPGRADE-4.4.md @@ -393,4 +393,4 @@ WebServerBundle Yaml ---- -* Deprecated accepting STDIN implicitly when using the `lint:yaml` command, use `lint:yaml -` (append a dash) instead to make it explicit. + * Deprecated accepting STDIN implicitly when using the `lint:yaml` command, use `lint:yaml -` (append a dash) instead to make it explicit. diff --git a/UPGRADE-5.0.md b/UPGRADE-5.0.md index fda718912d..67b5ef02c3 100644 --- a/UPGRADE-5.0.md +++ b/UPGRADE-5.0.md @@ -360,7 +360,7 @@ Monolog MonologBridge -------------- -* The `RouteProcessor` class is final. + * The `RouteProcessor` class is final. Process ------- @@ -529,7 +529,7 @@ Serializer Serializer ---------- -* Removed the `XmlEncoder::TYPE_CASE_ATTRIBUTES` constant. Use `XmlEncoder::TYPE_CAST_ATTRIBUTES` instead. + * Removed the `XmlEncoder::TYPE_CASE_ATTRIBUTES` constant. Use `XmlEncoder::TYPE_CAST_ATTRIBUTES` instead. Stopwatch --------- diff --git a/src/Symfony/Bridge/Monolog/CHANGELOG.md b/src/Symfony/Bridge/Monolog/CHANGELOG.md index 9deec49664..61ab0b3c6f 100644 --- a/src/Symfony/Bridge/Monolog/CHANGELOG.md +++ b/src/Symfony/Bridge/Monolog/CHANGELOG.md @@ -4,9 +4,9 @@ CHANGELOG 4.4.0 ----- -* The `RouteProcessor` class has been made final -* Added `ElasticsearchLogstashHandler` -* Added the `ServerLogCommand`. Backport from the deprecated WebServerBundle + * The `RouteProcessor` class has been made final + * Added `ElasticsearchLogstashHandler` + * Added the `ServerLogCommand`. Backport from the deprecated WebServerBundle 4.3.0 ----- diff --git a/src/Symfony/Component/Console/CHANGELOG.md b/src/Symfony/Component/Console/CHANGELOG.md index 482c8cd362..5159244557 100644 --- a/src/Symfony/Component/Console/CHANGELOG.md +++ b/src/Symfony/Component/Console/CHANGELOG.md @@ -47,9 +47,9 @@ CHANGELOG * `OutputFormatter` throws an exception when unknown options are used * removed `QuestionHelper::setInputStream()/getInputStream()` * removed `Application::getTerminalWidth()/getTerminalHeight()` and - `Application::setTerminalDimensions()/getTerminalDimensions()` -* removed `ConsoleExceptionEvent` -* removed `ConsoleEvents::EXCEPTION` + `Application::setTerminalDimensions()/getTerminalDimensions()` + * removed `ConsoleExceptionEvent` + * removed `ConsoleEvents::EXCEPTION` 3.4.0 ----- @@ -66,23 +66,23 @@ CHANGELOG 3.3.0 ----- -* added `ExceptionListener` -* added `AddConsoleCommandPass` (originally in FrameworkBundle) -* [BC BREAK] `Input::getOption()` no longer returns the default value for options - with value optional explicitly passed empty -* added console.error event to catch exceptions thrown by other listeners -* deprecated console.exception event in favor of console.error -* added ability to handle `CommandNotFoundException` through the - `console.error` event -* deprecated default validation in `SymfonyQuestionHelper::ask` + * added `ExceptionListener` + * added `AddConsoleCommandPass` (originally in FrameworkBundle) + * [BC BREAK] `Input::getOption()` no longer returns the default value for options + with value optional explicitly passed empty + * added console.error event to catch exceptions thrown by other listeners + * deprecated console.exception event in favor of console.error + * added ability to handle `CommandNotFoundException` through the + `console.error` event + * deprecated default validation in `SymfonyQuestionHelper::ask` 3.2.0 ------ -* added `setInputs()` method to CommandTester for ease testing of commands expecting inputs -* added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface) -* added StreamableInputInterface -* added LockableTrait + * added `setInputs()` method to CommandTester for ease testing of commands expecting inputs + * added `setStream()` and `getStream()` methods to Input (implement StreamableInputInterface) + * added StreamableInputInterface + * added LockableTrait 3.1.0 ----- diff --git a/src/Symfony/Component/Debug/CHANGELOG.md b/src/Symfony/Component/Debug/CHANGELOG.md index 989c1a72da..d49a82df65 100644 --- a/src/Symfony/Component/Debug/CHANGELOG.md +++ b/src/Symfony/Component/Debug/CHANGELOG.md @@ -10,67 +10,66 @@ CHANGELOG 4.3.0 ----- -* made the `ErrorHandler` and `ExceptionHandler` classes final -* added `Exception\FlattenException::getAsString` and -`Exception\FlattenException::getTraceAsString` to increase compatibility to php -exception objects + * made the `ErrorHandler` and `ExceptionHandler` classes final + * added `Exception\FlattenException::getAsString` and + `Exception\FlattenException::getTraceAsString` to increase compatibility to php + exception objects 4.0.0 ----- -* removed the symfony_debug extension -* removed `ContextErrorException` + * removed the symfony_debug extension + * removed `ContextErrorException` 3.4.0 ----- -* deprecated `ErrorHandler::stackErrors()` and `ErrorHandler::unstackErrors()` + * deprecated `ErrorHandler::stackErrors()` and `ErrorHandler::unstackErrors()` 3.3.0 ----- -* deprecated the `ContextErrorException` class: use \ErrorException directly now + * deprecated the `ContextErrorException` class: use \ErrorException directly now 3.2.0 ----- -* `FlattenException::getTrace()` now returns additional type descriptions - `integer` and `float`. - + * `FlattenException::getTrace()` now returns additional type descriptions + `integer` and `float`. 3.0.0 ----- -* removed classes, methods and interfaces deprecated in 2.x + * removed classes, methods and interfaces deprecated in 2.x 2.8.0 ----- -* added BufferingLogger for errors that happen before a proper logger is configured -* allow throwing from `__toString()` with `return trigger_error($e, E_USER_ERROR);` -* deprecate ExceptionHandler::createResponse + * added BufferingLogger for errors that happen before a proper logger is configured + * allow throwing from `__toString()` with `return trigger_error($e, E_USER_ERROR);` + * deprecate ExceptionHandler::createResponse 2.7.0 ----- -* added deprecations checking for parent interfaces/classes to DebugClassLoader -* added ZTS support to symfony_debug extension -* added symfony_debug_backtrace() to symfony_debug extension - to track the backtrace of fatal errors + * added deprecations checking for parent interfaces/classes to DebugClassLoader + * added ZTS support to symfony_debug extension + * added symfony_debug_backtrace() to symfony_debug extension + to track the backtrace of fatal errors 2.6.0 ----- -* generalized ErrorHandler and ExceptionHandler, - with some new methods and others deprecated -* enhanced error messages for uncaught exceptions + * generalized ErrorHandler and ExceptionHandler, + with some new methods and others deprecated + * enhanced error messages for uncaught exceptions 2.5.0 ----- -* added ExceptionHandler::setHandler() -* added UndefinedMethodFatalErrorHandler -* deprecated DummyException + * added ExceptionHandler::setHandler() + * added UndefinedMethodFatalErrorHandler + * deprecated DummyException 2.4.0 ----- diff --git a/src/Symfony/Component/DependencyInjection/CHANGELOG.md b/src/Symfony/Component/DependencyInjection/CHANGELOG.md index b514ce1c83..ee8583b262 100644 --- a/src/Symfony/Component/DependencyInjection/CHANGELOG.md +++ b/src/Symfony/Component/DependencyInjection/CHANGELOG.md @@ -136,7 +136,6 @@ CHANGELOG * added `TaggedIteratorArgument` with YAML (`!tagged foo`) and XML (``) support * deprecated `AutowireExceptionPass` and `AutowirePass::getAutowiringExceptions()`, use `Definition::addError()` and the `DefinitionErrorExceptionPass` instead - 3.3.0 ----- @@ -205,8 +204,8 @@ CHANGELOG 2.5.0 ----- -* added DecoratorServicePass and a way to override a service definition (Definition::setDecoratedService()) -* deprecated SimpleXMLElement class. + * added DecoratorServicePass and a way to override a service definition (Definition::setDecoratedService()) + * deprecated SimpleXMLElement class. 2.4.0 ----- diff --git a/src/Symfony/Component/DomCrawler/CHANGELOG.md b/src/Symfony/Component/DomCrawler/CHANGELOG.md index 56863b7c73..da108588dc 100644 --- a/src/Symfony/Component/DomCrawler/CHANGELOG.md +++ b/src/Symfony/Component/DomCrawler/CHANGELOG.md @@ -4,46 +4,46 @@ CHANGELOG 4.4.0 ----- -* Added `Form::getName()` method. -* Added `Crawler::matches()` method. -* Added `Crawler::closest()` method. -* Added `Crawler::outerHtml()` method. -* Added an argument to the `Crawler::text()` method to opt-in normalizing whitespaces. + * Added `Form::getName()` method. + * Added `Crawler::matches()` method. + * Added `Crawler::closest()` method. + * Added `Crawler::outerHtml()` method. + * Added an argument to the `Crawler::text()` method to opt-in normalizing whitespaces. 4.3.0 ----- -* Added PHPUnit constraints: `CrawlerSelectorAttributeValueSame`, `CrawlerSelectorExists`, `CrawlerSelectorTextContains` - and `CrawlerSelectorTextSame` -* Added return of element name (`_name`) in `extract()` method. -* Added ability to return a default value in `text()` and `html()` instead of throwing an exception when node is empty. -* When available, the [html5-php library](https://github.com/Masterminds/html5-php) is used to - parse HTML added to a Crawler for better support of HTML5 tags. + * Added PHPUnit constraints: `CrawlerSelectorAttributeValueSame`, `CrawlerSelectorExists`, `CrawlerSelectorTextContains` + and `CrawlerSelectorTextSame` + * Added return of element name (`_name`) in `extract()` method. + * Added ability to return a default value in `text()` and `html()` instead of throwing an exception when node is empty. + * When available, the [html5-php library](https://github.com/Masterminds/html5-php) is used to + parse HTML added to a Crawler for better support of HTML5 tags. 4.2.0 ----- -* The `$currentUri` constructor argument of the `AbstractUriElement`, `Link` and - `Image` classes is now optional. -* The `Crawler::children()` method will have a new `$selector` argument in version 5.0, - not defining it is deprecated. + * The `$currentUri` constructor argument of the `AbstractUriElement`, `Link` and + `Image` classes is now optional. + * The `Crawler::children()` method will have a new `$selector` argument in version 5.0, + not defining it is deprecated. 3.1.0 ----- -* All the URI parsing logic have been abstracted in the `AbstractUriElement` class. - The `Link` class is now a child of `AbstractUriElement`. -* Added an `Image` class to crawl images and parse their `src` attribute, - and `selectImage`, `image`, `images` methods in the `Crawler` (the image version of the equivalent `link` methods). + * All the URI parsing logic have been abstracted in the `AbstractUriElement` class. + The `Link` class is now a child of `AbstractUriElement`. + * Added an `Image` class to crawl images and parse their `src` attribute, + and `selectImage`, `image`, `images` methods in the `Crawler` (the image version of the equivalent `link` methods). 2.5.0 ----- -* [BC BREAK] The default value for checkbox and radio inputs without a value attribute have changed - from '1' to 'on' to match the HTML specification. -* [BC BREAK] The typehints on the `Link`, `Form` and `FormField` classes have been changed from - `\DOMNode` to `DOMElement`. Using any other type of `DOMNode` was triggering fatal errors in previous - versions. Code extending these classes will need to update the typehints when overwriting these methods. + * [BC BREAK] The default value for checkbox and radio inputs without a value attribute have changed + from '1' to 'on' to match the HTML specification. + * [BC BREAK] The typehints on the `Link`, `Form` and `FormField` classes have been changed from + `\DOMNode` to `DOMElement`. Using any other type of `DOMNode` was triggering fatal errors in previous + versions. Code extending these classes will need to update the typehints when overwriting these methods. 2.4.0 ----- diff --git a/src/Symfony/Component/Ldap/CHANGELOG.md b/src/Symfony/Component/Ldap/CHANGELOG.md index fbfe926ac4..b1278b7bb8 100644 --- a/src/Symfony/Component/Ldap/CHANGELOG.md +++ b/src/Symfony/Component/Ldap/CHANGELOG.md @@ -33,7 +33,7 @@ CHANGELOG 3.3.0 ----- -* The `RenameEntryInterface` inferface is deprecated, and will be merged with `EntryManagerInterface` in 4.0. + * The `RenameEntryInterface` inferface is deprecated, and will be merged with `EntryManagerInterface` in 4.0. 3.1.0 ----- diff --git a/src/Symfony/Component/PropertyAccess/CHANGELOG.md b/src/Symfony/Component/PropertyAccess/CHANGELOG.md index d733c41481..c720889ef5 100644 --- a/src/Symfony/Component/PropertyAccess/CHANGELOG.md +++ b/src/Symfony/Component/PropertyAccess/CHANGELOG.md @@ -10,9 +10,9 @@ CHANGELOG 4.3.0 ----- -* added a `$throwExceptionOnInvalidPropertyPath` argument to the PropertyAccessor constructor. -* added `enableExceptionOnInvalidPropertyPath()`, `disableExceptionOnInvalidPropertyPath()` and - `isExceptionOnInvalidPropertyPath()` methods to `PropertyAccessorBuilder` + * added a `$throwExceptionOnInvalidPropertyPath` argument to the PropertyAccessor constructor. + * added `enableExceptionOnInvalidPropertyPath()`, `disableExceptionOnInvalidPropertyPath()` and + `isExceptionOnInvalidPropertyPath()` methods to `PropertyAccessorBuilder` 4.0.0 ----- diff --git a/src/Symfony/Component/PropertyInfo/CHANGELOG.md b/src/Symfony/Component/PropertyInfo/CHANGELOG.md index 19120c9f60..0760e2cb4f 100644 --- a/src/Symfony/Component/PropertyInfo/CHANGELOG.md +++ b/src/Symfony/Component/PropertyInfo/CHANGELOG.md @@ -4,15 +4,15 @@ CHANGELOG 4.3.0 ----- -* Added the ability to extract private and protected properties and methods on `ReflectionExtractor` -* Added the ability to extract property type based on its initial value + * Added the ability to extract private and protected properties and methods on `ReflectionExtractor` + * Added the ability to extract property type based on its initial value 4.2.0 ----- -* added `PropertyInitializableExtractorInterface` to test if a property can be initialized through the constructor (implemented by `ReflectionExtractor`) + * added `PropertyInitializableExtractorInterface` to test if a property can be initialized through the constructor (implemented by `ReflectionExtractor`) 3.3.0 ----- -* Added `PropertyInfoPass` + * Added `PropertyInfoPass`