[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:30:23 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 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 );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53858#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list