File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,20 @@ every time you use a deprecated parameters for {es}. We decided to add this
9
9
notice to facilitate the code refactoring with the new API specification of {es}
10
10
(for example the usage of typeless APIs, see below).
11
11
12
+ From 7.4.1, we mitigated the usage of E_USER_DEPRICATED warning by using the `@`
13
+ https://www.php.net/manual/en/language.operators.errorcontrol.php[operator]. The
14
+ operator suppresses the error message, however, it is still possible to catch it
15
+ by using a custom error handler:
16
+
17
+ [source,php]
18
+ ----
19
+ set_error_handler(function ($errno, $errstr) {
20
+ var_dump($errstr);
21
+ }, E_USER_DEPRECATED);
22
+
23
+ @trigger_error('Deprecation message here', E_USER_DEPRECATED);
24
+ ----
25
+
12
26
13
27
### Moving from types to typeless APIs in {es} 7.0
14
28
You can’t perform that action at this time.
0 commit comments