[php-src] Issue #20178: Add method attributes #[ParameterOrderMayChange] / #[ParameterNamesMayChange]

From: Date: Wed, 15 Oct 2025 10:19:27 +0000
Subject: [php-src] Issue #20178: Add method attributes #[ParameterOrderMayChange] / #[ParameterNamesMayChange]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251067@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20178 Author: geek-merlin ### Description #[ParameterOrderMayChange] / #[ParameterNamesMayChange] I have seen succh a PhpDoc text comment several times on methods and used it myself too. It would help the ecosystem a lot, if this was standardized and machine-readable. An IDE would use it like this: - #[ParameterOrderMayChange] => Autocompletion suggests adding parameter names. Calls w/ un-named parameters are flagged with a warning. - #[ParameterNamesMayChange] => Autocompletion suggests parameters w/o names. Calls w/ named parameters are flagged with a warning.

« previous php.bugs (#251067) next »