8000 Add deprecation for method signature · symfony/symfony@56d5d6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 56d5d6d

Browse files
committed
Add deprecation for method signature
1 parent 8c25592 commit 56d5d6d

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

UPGRADE-4.4.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Form
8484
* Using different values for the "model_timezone" and "view_timezone" options of the `TimeType` without configuring a
8585
reference date is deprecated.
8686
* Using `int` or `float` as data for the `NumberType` when the `input` option is set to `string` is deprecated.
87+
* Overriding the methods `FormIntegrationTestCase::setUp()`, `TypeTestCase::setUp()` and `TypeTestCase::tearDown()` without the `void` return-type is deprecated.
8788

8889
FrameworkBundle
8990
---------------
@@ -96,7 +97,8 @@ FrameworkBundle
9697
* The `controller_name_converter` and `resolve_controller_name_subscriber` services have been deprecated.
9798
* Deprecated `routing.loader.service`, use `routing.loader.container` instead.
9899
* Not tagging service route loaders with `routing.route_loader` has been deprecated.
99-
100+
* Overriding the methods `KernelTestCase::tearDown()` and `WebTestCase::tearDown()` without the `void` return-type is deprecated.
101+
100102
HttpClient
101103
----------
102104

@@ -247,6 +249,7 @@ Validator
247249
when the `min` option is used.
248250
Set it to `true` to keep the current behavior and `false` to reject empty strings.
249251
In 5.0, it'll become optional and will default to `false`.
252+
* Overriding the methods `ConstraintValidatorTestCase::setUp()` and `ConstraintValidatorTestCase::tearDown()` without the `void` return-type is deprecated.
250253

251254
WebProfilerBundle
252255
-----------------

UPGRADE-5.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Form
214214
```
215215

216216
* The `regions` option was removed from the `TimezoneType`.
217+
* Added support for PHPUnit 8. A `void` return-type was added to the `FormIntegrationTestCase::setUp()`, `TypeTestCase::setUp()` and `TypeTestCase::tearDown()` methods.
217218

218219
FrameworkBundle
219220
---------------
@@ -257,6 +258,7 @@ FrameworkBundle
257258
* Removed support for `templating` engine in `TemplateController`, use Twig instead
258259
* Removed `ResolveControllerNameSubscriber`.
259260
* Removed `routing.loader.service`.
261+
* Added support for PHPUnit 8. A `void` return-type was added to the `KernelTestCase::tearDown()` and `WebTestCase::tearDown()` method.
260262

261263
HttpClient
262264
----------
@@ -532,6 +534,7 @@ Validator
532534
* The `egulias/email-validator` component is now required for using the `Email` constraint in strict mode
533535
* The `symfony/expression-language` component is now required for using the `Expression` constraint
534536
* Changed the default value of `Length::$allowEmptyString` to `false` and made it optional
537+
* Added support for PHPUnit 8. A `void` return-type was added to the `ConstraintValidatorTestCase::setUp()` and `ConstraintValidatorTestCase::tearDown()` methods.
535538

536539
WebProfilerBundle
537540
-----------------

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ CHANGELOG
1313
* Deprecated booting the kernel before running `WebTestCase::createClient()`
1414
* Deprecated `routing.loader.service`, use < 101A9 span class="pl-s">`routing.loader.container` instead.
1515
* Not tagging service route loaders with `routing.route_loader` has been deprecated.
16-
16+
* Overriding the methods `KernelTestCase::tearDown()` and `WebTestCase::tearDown()` without the `void` return-type is deprecated.
17+
1718
4.3.0
1819
-----
1920

src/Symfony/Component/Form/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGELOG
99
* preferred choices are repeated in the list of all choices
1010
* deprecated using `int` or `float` as data for the `NumberType` when the `input` option is set to `string`
1111
* The type guesser guesses the HTML accept attribute when a mime type is configured in the File or Image constraint.
12+
* Overriding the methods `FormIntegrationTestCase::setUp()`, `TypeTestCase::setUp()` and `TypeTestCase::tearDown()` without the `void` return-type is deprecated.
1213

1314
4.3.0
1415
-----

src/Symfony/Component/Validator/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ CHANGELOG
2121
* added a new `notInRangeMessage` option to the `Range` constraint that will
2222
be used in the violation builder when both `min` and `max` are not null
2323
* added ability to use stringable objects as violation messages
24+
* Overriding the methods `ConstraintValidatorTestCase::setUp()` and `ConstraintValidatorTestCase::tearDown()` without the `void` return-type is deprecated.
2425

2526
4.3.0
2627
-----

0 commit comments

Comments
 (0)
0