[php-src] PR #12683: Fixing incorrect error message when passing null to join/implode's array parameter
| From: | CViniciusSDias | Date: | Wed, 15 Nov 2023 22:54:45 +0000 |
| Subject: | [php-src] PR #12683: Fixing incorrect error message when passing null to join/implode's array parameter | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24192@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12683
Author: CViniciusSDias
When passing
null to the second parameter of join/implode
function, the error message said "string given" instead of "null given". This PR
changes the error message to display the correct type.
I also added the test to it in a separate file since the implode1.phpt was huge already
and it doesn't follow the recommendation of having _error suffix.
Fixes #12682