Error when using nested Namespaces #355
Unanswered
johannesMEGABAD
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🐛 Bug Report
Summary
When using a nested namespace (e.g.,
MyCompany\Api
) during the configure process, the script crashes with PHP warnings related toforeach()
expecting an array but gettingnull
.This appears to happen during modification of the
composer.json
file when optional tools like Laravel Pint or PhpStan are disabled.💥 Error Output
🧪 Reproduction Steps
configure
script.This was done on Windows.
Is this by design? Or could a pull request fix it? If so I would be glad to open one
In the end I would have expected it to create a namespace like "MyCompany\Api" and the class then just says "Client".
So that in my project I can use it like "use MyCompany\Api\Client;"
Beta Was this translation helpful? Give feedback.
All reactions