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
Needlessly annoying to type. Obviously a breaking change.
The text was updated successfully, but these errors were encountered:
Why is this a breaking change? Class names and namespaces are case insensitive. And otherwise you could use use anlutro\cURL\cURL as Curl.
use anlutro\cURL\cURL as Curl
Sorry, something went wrong.
Class names and namespaces are indeed case-insensitive, but composer's autoloader is not.
andreas@oberyn ~/dev/php/test $ cat composer.json { "autoload": { "psr-4": { "Test\\": "src/" } } } andreas@oberyn ~/dev/php/test $ cat src/Test.php <?php namespace Test; echo 'loading '.__FILE__."\n"; class Test {} andreas@oberyn ~/dev/php/test $ cat test.php <?php require __DIR__.'/vendor/autoload.php'; var_dump(class_exists('test\test')); var_dump(class_exists('Test\Test')); andreas@oberyn ~/dev/php/test $ php test.php bool(false) loading /home/andreas/dev/php/test/src/Test.php bool(true)
No branches or pull requests
Needlessly annoying to type. Obviously a breaking change.
The text was updated successfully, but these errors were encountered: