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

[5.x] Fix autoload error on Windows #11282

Merged
merged 1 commit into from
Dec 18, 2024
Merged

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Dec 18, 2024

Fixes #11277
Caused by #11128
Related: studio1902/statamic-peak#408

Root level items weren't being loaded on addons on Windows due to the directory check added in #11128.
The directory separators were different. e.g. It was comparing C:\foo\bar and C:/foo/bar.

This PR uses Path::tidy() to normalize the slashes in the reflected path. The $addon->directory() and ->autoload() methods are already normalized.

@jasonvarga jasonvarga merged commit 0e2c9e0 into 5.x Dec 18, 2024
21 checks passed
@jasonvarga jasonvarga deleted the fix-windows-autoload-error branch December 18, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken \public\index.php after update
1 participant