rfc:null-propagation
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:null-propagation [2018/01/23 09:17] – created daverandom | rfc:null-propagation [2018/01/23 10:14] – daverandom | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Null Propagation Operator ====== | ====== PHP RFC: Null Propagation Operator ====== | ||
- | * Version: 0.9 | + | * Version: 0.1 |
* Date: 2018-01-23 | * Date: 2018-01-23 | ||
* Author: Chris Wright, daverandom@php.net | * Author: Chris Wright, daverandom@php.net | ||
Line 42: | Line 42: | ||
<code php> | <code php> | ||
+ | $foo = new Foo(null); | ||
$result = $foo-> | $result = $foo-> | ||
+ | var_dump($result); | ||
</ | </ | ||
+ | |||
+ | This operator does not suppress any errors that are generated by the left hand side of the expression, it only short-circuits the right hand side. | ||
===== Examples in other languages ===== | ===== Examples in other languages ===== | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
* [[http:// | * [[http:// | ||
rfc/null-propagation.txt · Last modified: 2018/01/29 16:33 by levim