rfc:partially-supported-callables-expand-deprecation-notices
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:partially-supported-callables-expand-deprecation-notices [2022/05/12 16:42] – created jrf | rfc:partially-supported-callables-expand-deprecation-notices [2022/06/19 12:33] – Added implementation at the top of the file jrf | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2022-05-12 | * Date: 2022-05-12 | ||
* Author: Juliette Reinders Folmer, < | * Author: Juliette Reinders Folmer, < | ||
- | * Status: | + | * Status: |
- | * First Published at: https:// | + | * First Published at: https:// |
+ | * Implementation: | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 152: | Line 153: | ||
Additionally, | Additionally, | ||
+ | |||
+ | |||
+ | ==== These additional deprecation notices will be very noisy ==== | ||
+ | |||
+ | While for '' | ||
+ | |||
+ | While it is expected that callables using the syntaxes now deprecated are only a small subsection of the callables used in code bases, this can still be annoying. | ||
+ | |||
+ | For codebases which either don't intend to upgrade to PHP 9.0, or want to delay addressing these deprecation notices, there are three options: | ||
+ | - Fix the issues anyway. All deprecated syntaxes have cross-version compatible alternatives as per the [[https:// | ||
+ | - Set '' | ||
+ | - Register a custom error handler and filter out all, or a selection of, deprecation notices. | ||
Line 164: | Line 177: | ||
This change will allow more deprecated partially supported callables to be discovered and fixed prior to PHP 9.0. | This change will allow more deprecated partially supported callables to be discovered and fixed prior to PHP 9.0. | ||
- | While in some cases, this means that two deprecation notices will now be thrown instead of one, in those cases, the same fix which was originally needed anyway, will remove | + | While in some cases, this means that multiple |
As all deprecated partially supported callables have an equivalent which is supported PHP cross-version - see the [[https:// | As all deprecated partially supported callables have an equivalent which is supported PHP cross-version - see the [[https:// | ||
Line 174: | Line 187: | ||
The behaviour of the '' | The behaviour of the '' | ||
- | ===== Proposed Voting Choices | + | ===== Vote ===== |
- | As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | + | As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. |
- | **Add deprecation | + | Voting started on 2022-05-31 10:30 UTC and ended on 2022-06-14 10:30 UTC. |
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | ----- | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
Line 184: | Line 209: | ||
[[https:// | [[https:// | ||
+ | |||
+ | PR: https:// | ||
===== Implementation ===== | ===== Implementation ===== | ||
- | Not available yet. | ||
After the project is implemented, | After the project is implemented, | ||
Line 199: | Line 225: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
rfc/partially-supported-callables-expand-deprecation-notices.txt · Last modified: 2022/07/15 16:07 by jrf