We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
<?php try { join('', null); } catch (TypeError $e) { echo $e->getMessage(); } ?>
Resulted in this output:
join(): Argument #1 ($pieces) must be of type array, string given
But I expected this output instead:
join(): Argument #2 ($array) must be of type array, null given
PHP 8.2.10
No response
The text was updated successfully, but these errors were encountered:
Fixes php#12682
72c6102
c250a71
1cf7390
469981b
Fixing incorrect error message when passing null to join/implode's ar…
f1af722
…ray parameter (#12683) Closes GH-12682
Successfully merging a pull request may close this issue.
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.2.10
Operating System
No response
The text was updated successfully, but these errors were encountered: