Skip to content

Commit 10df5f3

Browse files
Generate ignoreIndirectDeprecations="true" instead of restrictDeprecations="true"
1 parent 239372e commit 10df5f3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ChangeLog-11.1.md

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

1818
* [#5708](https://github.com/sebastianbergmann/phpunit/issues/5708): Allow the `--group`, `--exclude-group`, `--covers`, `--uses`, and `--test-suffix` CLI options to be used multiple times
19+
* [#5689](https://github.com/sebastianbergmann/phpunit/issues/5689): The XML configuration file generated using `--generate-configuration` now generates `<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">` instead of `<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">`
1920
* Changed how the `DeprecationTriggered`, `ErrorTriggered`, `NoticeTriggered`, `PhpDeprecationTriggered`, `PhpNoticeTriggered`, `PhpWarningTriggered`, and `WarningTriggered` events are represented as text
2021

2122
### Deprecated

src/TextUI/Configuration/Xml/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</testsuite>
3838
</testsuites>
3939
40-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
40+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
4141
<include>
4242
<directory>{src_directory}</directory>
4343
</include>

tests/unit/TextUI/Configuration/Xml/GeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testGeneratesConfigurationCorrectly(): void
3939
</testsuite>
4040
</testsuites>
4141
42-
<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
42+
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
4343
<include>
4444
<directory>src</directory>
4545
</include>

0 commit comments

Comments
 (0)