rfc:to-array

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:to-array [2020/02/11 13:02] – Update language to specify behavior with respect to strict typing stevenwadejrrfc:to-array [2020/02/11 13:57] (current) – Bump the version number now that it's under discussion and some feedback has been addressed stevenwadejr
Line 1: Line 1:
 ====== PHP RFC: __toArray() ====== ====== PHP RFC: __toArray() ======
-  * Version: 0.1+  * Version: 1.1
   * Date: 2019-08-28   * Date: 2019-08-28
   * Author: Steven Wade, stevenwadejr@gmail.com   * Author: Steven Wade, stevenwadejr@gmail.com
Line 126: Line 126:
 } }
  
-foo($person); // Throws an error: "Return value of bar() must be of the type array, object returned"+foo($person); // Throws an error: "Argument 1 passed to foo() must be of the type array, object given"
 </code> </code>
  
rfc/to-array.txt · Last modified: 2020/02/11 13:57 by stevenwadejr