[php-src] Issue #11388: Allow "final" modifier when importing a method from a trait

From: Date: Wed, 07 Jun 2023 09:12:27 +0000
Subject: [php-src] Issue #11388: Allow "final" modifier when importing a method from a trait
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244613@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11388 Author: nicolas-grekas ### Description Not sure why this is not allowed currently, but it'd be nice allowing it if there aren't any blockers: ``` trait SomeTrait { function someMethod() {} } class SomeClass { use SomeTrait { someMethod as final; } } ``` This currently produces: "Cannot use 'final' as method modifier"

« previous php.bugs (#244613) next »