Skip to content

Commit fc1f49b

Browse files
Deprecate the restrictDeprecations attribute
1 parent 10df5f3 commit fc1f49b

File tree

7 files changed

+9
-8
lines changed

7 files changed

+9
-8
lines changed

ChangeLog-11.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ All notable changes of the PHPUnit 11.1 release series are documented in this fi
2121

2222
### Deprecated
2323

24+
* [#5689](https://github.com/sebastianbergmann/phpunit/issues/5689): The `restrictDeprecations` attribute on the `<source>` element of the XML configuration file is now deprecated in favor of the `ignoreSelfDeprecations`, `ignoreDirectDeprecations`, and `ignoreIndirectDeprecations` attributes
2425
* [#5709](https://github.com/sebastianbergmann/phpunit/issues/5709): Deprecate support for using comma-separated values with the `--group`, `--exclude-group`, `--covers`, `--uses`, and `--test-suffix` CLI options
2526

2627
[11.1.0]: https://github.com/sebastianbergmann/phpunit/compare/11.0...main

DEPRECATIONS.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ This functionality is currently [hard-deprecated](https://phpunit.de/backward-co
4545

4646
### Running Tests
4747

48-
| Issue | Description | Since | Replacement |
49-
|-------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|--------|-------------------------------------------------------------------------|
50-
| [#5709](https://github.com/sebastianbergmann/phpunit/issues/5709) | Support for using comma-separated values with the `--group`, `--exclude-group`, `--covers`, `--uses`, and `--test-suffix` CLI options | 11.1.0 | Use `--group foo --group bar` instead of `--group foo,bar`, for example |
48+
| Issue | Description | Since | Replacement |
49+
|-------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|--------|----------------------------------------------------------------------------------------------------|
50+
| [#5689](https://github.com/sebastianbergmann/phpunit/issues/5689) | `restrictDeprecations` attribute on the `<source>` element of the XML configuration file | 11.1.0 | Use `ignoreSelfDeprecations`, `ignoreDirectDeprecations`, and `ignoreIndirectDeprecations` instead |
51+
| [#5709](https://github.com/sebastianbergmann/phpunit/issues/5709) | Support for using comma-separated values with the `--group`, `--exclude-group`, `--covers`, `--uses`, and `--test-suffix` CLI options | 11.1.0 | Use `--group foo --group bar` instead of `--group foo,bar`, for example |
5152

5253
#### Miscellaneous
5354

phpunit.xsd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<xs:element name="deprecationTrigger" type="deprecationTriggerType" minOccurs="0"/>
2727
</xs:all>
2828
<xs:attribute name="baseline" type="xs:anyURI"/>
29-
<xs:attribute name="restrictDeprecations" type="xs:boolean" default="false"/>
3029
<xs:attribute name="restrictNotices" type="xs:boolean" default="false"/>
3130
<xs:attribute name="restrictWarnings" type="xs:boolean" default="false"/>
3231
<xs:attribute name="ignoreSuppressionOfDeprecations" type="xs:boolean" default="false"/>

tests/end-to-end/_files/filter-error-handler/filter-disabled.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</testsuite>
99
</testsuites>
1010

11-
<source restrictDeprecations="false" restrictNotices="false" restrictWarnings="false">
11+
<source restrictNotices="false" restrictWarnings="false">
1212
<include>
1313
<directory suffix=".php">src</directory>
1414
</include>

tests/end-to-end/_files/filter-error-handler/filter-enabled.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</testsuite>
99
</testsuites>
1010

11-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
11+
<source ignoreDirectDeprecations="true" ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
1212
<include>
1313
<directory suffix=".php">src</directory>
1414
</include>

tests/end-to-end/_files/transform-exception-hook-method/phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</testsuite>
99
</testsuites>
1010

11-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
11+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
1212
<include>
1313
<directory suffix=".php">src</directory>
1414
</include>

tests/end-to-end/regression/5351/phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</testsuite>
1515
</testsuites>
1616

17-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
17+
<source restrictNotices="true" restrictWarnings="true">
1818
<include>
1919
<directory>src</directory>
2020
</include>

0 commit comments

Comments
 (0)