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
If you set your psr-4 autoload directory as:
psr-4
"autoload": { "psr-4": { "EdmondsCommerce\\Vault\\": "src/" } },
Rather than:
"autoload": { "psr-4": { "EdmondsCommerce\\Vault\\": [ "src/" ] } },
Then you get the following error:
PHP Fatal error: Uncaught EdmondsCommerce\DoctrineStaticMeta\Exception\ErrorException: Invalid argument supplied for foreach()
The issue is in NamespaceHelper->getProjectRootNamespaceFromComposerJson():427
NamespaceHelper->getProjectRootNamespaceFromComposerJson():427
// ... foreach ($json['autoload']['psr-4'] as $namespace => $dirs) { foreach ($dirs as $dir) { // <-- Here $dirs is a string $dir = trim($dir, '/'); if ($dir === $dirForNamespace) { return $this->tidy(rtrim($namespace, '\\')); } } } // ...
The text was updated successfully, but these errors were encountered:
Will need to change the JSON decode to force assoc, it's just a bool flag
Sorry, something went wrong.
actually scratch that, we need to check if its an array and then if not give a more helpful error message
No branches or pull requests
If you set your
psr-4
autoload directory as:Rather than:
Then you get the following error:
The issue is in
NamespaceHelper->getProjectRootNamespaceFromComposerJson():427
The text was updated successfully, but these errors were encountered: