Hi internals, I've created a straw poll at https://wiki.php.net/rfc/calls_in_constant_expressions_poll , to measure interest in allowing calls in different types of constant expressions. If there aren't any problems with the poll structure or rules preventing creating a poll, I was going to add it to the rfc index page and move it to voting.
This poll was created to gather opinions on which of the below statement types would be desirable to change, and in which ways, before rewriting https://wiki.php.net/rfc/calls_in_constant_expressions . It seems desirable to change some of these expression types (e.g. parameter defaults, static properties, static variable defaults) in different ways from others. (e.g. forbidding static property declaration expression results from containing objects seems like a completely unnecessary limitation from trying to reuse the implementation, in retrospect). This poll was created for feedback on whether changes to the following places had support, and what types of changes there were interest in. - Initial values of static or instance properties. This poll only addresses static properties. - Parameter defaults of functions, methods, and closures. - Class constant values. - Global constant values. - Static variable default values. I'd asked earlier about creating a poll in https://externals.io/message/108430 , but didn't receive a response. Thanks, - Tyson -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php