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

Undefined array key "currentUri" in [...]Mapped.php Line 68 when using @import (inline) #109

Open
CSS-Regiogate opened this issue May 7, 2024 · 1 comment
Labels
Type: Bug Something isn't working

Comments

@CSS-Regiogate
Copy link

I use (at)import (inline) to read the contents of a css file containing my container queries (since they are not yet supportet).
This worked fine up to version 4.2.1.
In Version 4.3.0 it breaks with "Undefined array key "currentUri" in [...]Mapped.php Line 68"

The reason is that in Import.php, Line 179 the empty array for $currentFileInfo has been replaced by one containing two keys, but not the "currentUri" key, leading to the mentioned error in Mapped.php, where this key is read without checking its existence. The only check here is if the array is not falsy.

@Krinkle Krinkle added the Type: Bug Something isn't working label May 8, 2024
@Krinkle
Copy link
Member

Krinkle commented May 8, 2024

Thank you for reporting this bug. Would you like to try to write a patch for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Development

No branches or pull requests

2 participants