I get an error Illegal string offset '@id' in vendor/verbb/icon-picker/src/services/Service.php@145 because the length of the $files array is 1, and there's no index.
Simple fix for me (add an extra empty to the sprite as a placeholder for now while in development). Hopefully easy fix for you too (check length of $files array)
Description
I'm using the "icon sprites" feature with a file name icons-sprites.svg in my icon root. The sprite has only one
<symbol>
:I get an error
Illegal string offset '@id'
invendor/verbb/icon-picker/src/services/Service.php@145
because the length of the $files array is 1, and there's no index.Simple fix for me (add an extra empty to the sprite as a placeholder for now while in development). Hopefully easy fix for you too (check length of $files array)
Thought you'd like to know. Cheers!