rfc:lexical-anon

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
Next revisionBoth sides next revision
rfc:lexical-anon [2016/04/19 13:33] krakjoerfc:lexical-anon [2016/04/20 06:44] krakjoe
Line 1: Line 1:
 ====== PHP RFC: Lexical Scope Support for Anonymous Classes ====== ====== PHP RFC: Lexical Scope Support for Anonymous Classes ======
-  * Version: 0.1+  * Version: 0.2
   * Date: 2016-04-19   * Date: 2016-04-19
   * Author: krakjoe   * Author: krakjoe
Line 91: Line 91:
  
 ''$object->property'' ''$object->property''
 +
 +A property name cannot be used twice:
 +
 +''use($prop, $prop)''
 +
 +and
 +
 +''use($prop, $this->prop)''
 +
 +Will both raise compile time errors:
 +
 +<code>
 +Fatal error: Cannot use property name glow twice in /in/file on line 6
 +</code>
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
Line 113: Line 127:
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
-https://github.com/php/php-src/compare/master...krakjoe:lexical-anon+https://github.com/php/php-src/pull/1874
  
 ===== Implementation ===== ===== Implementation =====
rfc/lexical-anon.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1