[php-src] PR #21012: chore: improve errror message when passing named parameter for variadic

From: Date: Thu, 22 Jan 2026 23:04:40 +0000
Subject: [php-src] PR #21012: chore: improve errror message when passing named parameter for variadic
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34642@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21012 Author: jorgsowa I was a bit confused when I encountered the error does not accept unknown named parameters. The issue was that I passed an associative array to a variadic parameter, which made the message misleading. Because of that, I felt a clearer error message would be more appropriate in this case. I changed the error message from <function> does not accept unknown named parameters to <function> does not accept named arguments for variadic parameters. The discussion about this problem was touched in https://github.com/php/php-src/issues/11026

« previous php.git-pulls (#34642) next »