Skip to content
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

Autoload: treat PSR-4 case-sensitively and PSR-0 case-insensitively #594

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 6, 2021

As the most common server OS-es have a case-sensitive file system and PSR-4 class loading does a direct translation from the class name to the file name, the PSR-4 based autoloading is now completely case-sensitive.

As for the BC-layer for PSR-0: this will now consistently be handled case-insensitively.
This was largely so, what with the case-insensitive classmap being used. It may also make the change over slightly easier as a number of class name have changes in the case being used.

Includes a minor adjustment to an existing test to safeguard the case-insensitive handling handling of the PSR-0 classes.

As the most common server OS-es have a case-sensitive file system and PSR-4 class loading does a direct translation from the class name to the file name, the PSR-4 based autoloading is now completely case-sensitive.

As for the BC-layer for PSR-0: this will now consistently be handled case-insensitively.
This was largely so, what with the case-insensitive classmap being used. It may also make the change over slightly easier as a number of class name have changes in the case being used.

Includes a minor adjustment to an existing test to safeguard the case-insensitive handling handling of the PSR-0 classes.
@jrfnl jrfnl added this to the 2.0.0 milestone Nov 6, 2021
@jrfnl jrfnl requested a review from schlessera November 6, 2021 22:34
@schlessera schlessera merged commit ab96eda into develop Nov 8, 2021
@schlessera schlessera deleted the feature/autoload-consistent-case-sensitivity branch November 8, 2021 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants