rfc:objects-can-be-falsifiable

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
rfc:objects-can-be-falsifiable [2022/11/03 14:49] – Add invokable RFC joshbrucerfc:objects-can-be-falsifiable [2022/11/04 00:17] – Fix formatting joshbruce
Line 218: Line 218:
 ==== November 3, 2022 ==== ==== November 3, 2022 ====
  
-  * How would this impact <php>callable</php>? Would a class using __invoke default to true? Can the same class implement Falsifiable and return false?+  * How would this impact <php>callable</php>? Would a class using <php>__invoke()</php> default to true? Can the same class implement Falsifiable and return false? 
  
 ==== July 16, 2020 ==== ==== July 16, 2020 ====
  
-  *  Default value for parameters with a class type can only be NULL+  * Default value for parameters with a class type can only be NULL 
        
 ==== July 15, 2020 ==== ==== July 15, 2020 ====
Line 231: Line 233:
   * Language around <php>bool|Falsifiable</php> implementation and need.   * Language around <php>bool|Falsifiable</php> implementation and need.
   * What version of PHP switched to only allowing <php>__construct()</php>   * What version of PHP switched to only allowing <php>__construct()</php>
- 
  
 ==== < July 15, 2020 ==== ==== < July 15, 2020 ====
Line 237: Line 238:
   * Presumes impact similar to <php>__toString()</php> and <php>Stringable</php>. RFC for <php>Stringable</php> listed concerns related to <php>__toString()</php> already being a method. Would look at the implementation as it should be similar, level of knowledge to implement is not there yet.   * Presumes impact similar to <php>__toString()</php> and <php>Stringable</php>. RFC for <php>Stringable</php> listed concerns related to <php>__toString()</php> already being a method. Would look at the implementation as it should be similar, level of knowledge to implement is not there yet.
   * As of this writing I do not have the knowledge, practice, and practical understanding of implementing within PHP internals to implement this myself. If you're interested in (helping) implement this concept, please do reach out (help may be in the form guidance and instruction or full implementation, up to you).   * As of this writing I do not have the knowledge, practice, and practical understanding of implementing within PHP internals to implement this myself. If you're interested in (helping) implement this concept, please do reach out (help may be in the form guidance and instruction or full implementation, up to you).
 +
  
 ===== Unaffected PHP Functionality ===== ===== Unaffected PHP Functionality =====
rfc/objects-can-be-falsifiable.txt · Last modified: 2022/11/04 23:14 by joshbruce