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
In v1.5.10 the following worked:
$assets->addInlineJs($json, null, null, 'application/ld+json');
As of v1.6.10 the above triggered an error expecting the last param as an array, not a string.
array_merge(): Expected parameter 2 to be an array, string given in system/src/Grav/Common/Assets/Traits/LegacyAssetsTrait.php line 54
Have applied following work-around and tested on v1.5.10 and v1.6.14:
$type = array('type' => 'application/ld+json'); if (version_compare(GRAV_VERSION, '1.6.0', '<')) { $type = 'application/ld+json'; } $assets->addInlineJs($sd, null, null, $type);
Possibly related to open issue #1687
The text was updated successfully, but these errors were encountered:
Fixed Assets::addInlineJs() parameter type mismatch between v1.5 an…
Assets::addInlineJs()
18a26b4
…d v1.6 [#2659]
mahagr
rhukster
No branches or pull requests
In v1.5.10 the following worked:
As of v1.6.10 the above triggered an error expecting the last param as an array, not a string.
array_merge(): Expected parameter 2 to be an array, string given in system/src/Grav/Common/Assets/Traits/LegacyAssetsTrait.php line 54
Have applied following work-around and tested on v1.5.10 and v1.6.14:
Possibly related to open issue #1687
The text was updated successfully, but these errors were encountered: