rfc:calls_in_constant_expressions_poll

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:calls_in_constant_expressions_poll [2020/02/17 03:26] tandrerfc:calls_in_constant_expressions_poll [2020/02/19 17:54] – Voting tandre
Line 3: Line 3:
   * Date: 2020-02-16   * Date: 2020-02-16
   * Author: Tyson Andre, tandre@php.net   * Author: Tyson Andre, tandre@php.net
-  * Status: Draft+  * Status: Voting (ends 2020-03-04)
   * First Published at: https://wiki.php.net/rfc/calls_in_constant_expressions_poll   * First Published at: https://wiki.php.net/rfc/calls_in_constant_expressions_poll
  
Line 39: Line 39:
 The planned ''strict_types'' behavior is to use the ''strict_types'' setting of the file containing the constant expression. The planned ''strict_types'' behavior is to use the ''strict_types'' setting of the file containing the constant expression.
  
-===== Proposed Voting Choices =====+===== Vote =====
  
 The evaluation order and error handling would be as described in https://wiki.php.net/rfc/calls_in_constant_expressions , except where noted otherwise. The evaluation order and error handling would be as described in https://wiki.php.net/rfc/calls_in_constant_expressions , except where noted otherwise.
Line 46: Line 46:
 (e.g. ''const X = ["constant value", any_function_call()][0]'' will not throw an error about being an invalid constant even if ''any_function_call()'' contains objects or references, because the final result is the string ''"constant value"'') (e.g. ''const X = ["constant value", any_function_call()][0]'' will not throw an error about being an invalid constant even if ''any_function_call()'' contains objects or references, because the final result is the string ''"constant value"'')
  
 +Voting ends March 4th, 2020.
  
 <doodle title="Support calls in class constants" auth="tandre" voteType="single" closed="false"> <doodle title="Support calls in class constants" auth="tandre" voteType="single" closed="false">
rfc/calls_in_constant_expressions_poll.txt · Last modified: 2020/03/04 13:53 by tandre