> On May 5, 2020, at 2:37 PM, Lynn <[email protected]> wrote:
>
> If I understand this correctly, something like this could be done?
>
> ```
> // current version, argument name = "firstArgument"
> function example(string $firstArgument) {}
> // name changes, bc can be kept, argument name = "firstArgument" and
> "argument"
> function example(string firstArgument: $argument) {}
> ```
> This would make it possible to keep backwards compatibility, and perhaps
> even trigger a notice when called with the old name?
>
I was going to suggest similar, but with the `as` keyword similar to the use in
the `use` statement:
function example( string $argument as firstArg ) {}
-Mike
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php