-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
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
[10.x] Illuminate\Filesystem\join_paths(): Argument #2 must be of type string, null given #49466
Comments
Hi @tylernathanreed. These methods never accepted a |
Yet despite that, the code worked. The Honestly, this is just failing because of the new type that formally introduced. Granted, as you said, the docblock stated that only a I've created PR #49467, which shows that only the type hint needs to be changed. |
I have exactly the same issue after just upgrading to |
We did a new patch release which should resolve this. |
@driesvints Perfect.. I just updated to @tylernathanreed Thanks for the PR 🚀 |
Laravel Version
10.38.1
PHP Version
8.2.12
Database Driver & Version
No response
Description
I recently ran
composer update
, which pulled in the latest Laravel version. My tests started reported errors that didn't previously exist, which indicates a breaking change.After some investigation, I discovered that it was caused by #49433, which no longer accepts
null
as a valid value for functions likeapp_path
,base_path
,public_path
, etc.While substituting an empty string instead of
null
fixes the issue, I wouldn't expect to have to update my project like this unless I was making a major Laravel upgrade (e.g. L11).Steps To Reproduce
Within
php artisan tinker
:The text was updated successfully, but these errors were encountered: