rfc:get_class_disallow_null_parameter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:get_class_disallow_null_parameter [2016/08/14 23:53] – correct BC compatibility change. danack | rfc:get_class_disallow_null_parameter [2018/03/01 23:26] (current) – RFC was implemented in PHP 7.2 carusogabriel | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2016-08-12 | * Date: 2016-08-12 | ||
* Author: Danack | * Author: Danack | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 61: | Line 61: | ||
<code php> | <code php> | ||
if ($some_value_that_may_be_null === null) { | if ($some_value_that_may_be_null === null) { | ||
- | $x = __CLASS__; | + | $x = get_class(); |
} | } | ||
else { | else { | ||
Line 71: | Line 71: | ||
7.2 | 7.2 | ||
- | ===== Proposed | + | ===== Voting ===== |
- | The voting question will be "Should the get_class() function be changed to disallow null being passed as a parameter?" with yes/no being the options. | + | Should the get_class() function be changed to disallow null being passed as a parameter? As it is not a language or syntax change, the vote will pass if 50%+1 vote yes. |
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | Voting ended on the 8th October 2016 9pm UTC | ||
===== null vs default param ===== | ===== null vs default param ===== | ||
Line 106: | Line 112: | ||
===== Implementation ===== | ===== Implementation ===== | ||
After the project is implemented, | After the project is implemented, | ||
- | - the version(s) it was merged | + | - This was merged |
- | - a link to the git commit(s) | + | - https:// |
- | - a link to the PHP manual | + | - https:// |
rfc/get_class_disallow_null_parameter.txt · Last modified: 2018/03/01 23:26 by carusogabriel