[wp-trac] [WordPress Trac] #53858: PHP 8.1: syntax error due to new 'readonly' property
WordPress Trac
noreply at wordpress.org
Mon Aug 2 09:39:41 UTC 2021
#53858: PHP 8.1: syntax error due to new 'readonly' property
-------------------------------+-----------------------------
Reporter: haosun | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 4.9
Severity: normal | Resolution:
Keywords: php81 needs-patch | Focuses:
-------------------------------+-----------------------------
Comment (by haosun):
Replying to [comment:6 knutsp]:
> > How can I define an alias? Could you show me one example?
>
> {{{#!php
> <?php
> function canonical_name( $argslist ) {
> // whetever
> return $something;
> }
>
> function alias_of_above( $argslist ){
> return canonical_name( $argslist );
> }
> }}}
Thanks.
On PHP < 8.1, I suppose the reason to add this alias is to keep consistent
with other code, right?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53858#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list