Skip to content

Commit 4f86bb5

Browse files
committed
add missing entries for FILTER_THROW_ON_FAILURE RFC
1 parent e3a2108 commit 4f86bb5

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

appendices/migration85/constants.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@
4949
</simplelist>
5050
</sect2>
5151

52+
<sect2 xml:id="migration85.constants.filter">
53+
<title>Filter</title>
54+
55+
<simplelist>
56+
<member>
57+
<constant>FILTER_THROW_ON_FAILURE</constant>
58+
</member>
59+
</simplelist>
60+
</sect2>
61+
5262
<sect2 xml:id="migration85.constants.intl">
5363
<title>Intl</title>
5464

appendices/migration85/new-classes.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
<!-- RFC: https://wiki.php.net/rfc/curl_share_persistence_improvement -->
2121
</sect2>
2222

23+
<sect2 xml:id="migration85.new-classes.filter">
24+
<title>Filter</title>
25+
<simplelist>
26+
<member><classname>Filter\FilterException</classname></member>
27+
<member><classname>Filter\FilterFailedException</classname></member>
28+
</simplelist>
29+
<!-- RFC: https://wiki.php.net/rfc/filter_throw_on_failure -->
30+
</sect2>
31+
2332
<sect2 xml:id="migration85.new-classes.uri">
2433
<title>URI</title>
2534
<simplelist>

appendices/migration85/new-features.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,21 @@ print T1 . PHP_EOL; // Prints "0"
285285

286286
</sect2>
287287

288+
<sect2 xml:id="migration85.new-features.filter">
289+
<title>Filter</title>
290+
291+
<simpara>
292+
Added new <constant>FILTER_THROW_ON_FAILURE</constant> flag which can be
293+
passed to the filter functions and will force an exception to be triggered
294+
when validation fails.
295+
The new flag cannot be combined with
296+
<constant>FILTER_NULL_ON_FAILURE</constant>; trying to do so will result
297+
in a <classname>ValueError</classname> being thrown.
298+
<!-- RFC: https://wiki.php.net/rfc/filter_throw_on_failure -->
299+
</simpara>
300+
301+
</sect2>
302+
288303
<sect2 xml:id="migration85.new-features.intl">
289304
<title>Intl</title>
290305

0 commit comments

Comments
 (0)