rfc:disallow-multiple-constructor-calls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:disallow-multiple-constructor-calls [2017/01/17 20:42] fleshgrinderrfc:disallow-multiple-constructor-calls [2021/03/27 15:00] (current) – Move to inactive ilutov
Line 1: Line 1:
 ====== PHP RFC: Disallow Multiple Constructor Calls ====== ====== PHP RFC: Disallow Multiple Constructor Calls ======
-  * Version: 0.1+  * Version: 0.2
   * Date: 2017-01-17   * Date: 2017-01-17
   * Author: Richard Fussenegger <php@fleshgrinder.com>, Tim Behashvyly <tim.bezhashvyly@gmail.com>   * Author: Richard Fussenegger <php@fleshgrinder.com>, Tim Behashvyly <tim.bezhashvyly@gmail.com>
-  * Status: Draft+  * Status: Inactive
   * First Published at: https://wiki.php.net/rfc/disallow-multiple-constructor-calls   * First Published at: https://wiki.php.net/rfc/disallow-multiple-constructor-calls
  
Line 150: Line 150:
   * Java does not support multiple calls (compiler error).   * Java does not support multiple calls (compiler error).
   * JavaScript, Python, and Ruby allow multiple calls.   * JavaScript, Python, and Ruby allow multiple calls.
 +
 +==== Upgrade Paths ====
 +We propose to include this change either in the next feature release or the next major. The decision is up to the voters. However, we propose that an error with severity ''E_DEPRECATED'' should be emitted upon multiple calls to a constructor if the vote’s result is to include the change in the next major release. This is to ensure that all users notice this change and are able to upgrade their code accordingly.
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
rfc/disallow-multiple-constructor-calls.1484685722.txt.gz · Last modified: 2017/09/22 13:28 (external edit)