mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 12:29:29 +01:00
fix requireComposerPackages
This commit is contained in:
parent
4f1e98c09e
commit
4e10daa790
@ -163,7 +163,7 @@ class PluginService
|
|||||||
{
|
{
|
||||||
if ($plugin->composer_packages) {
|
if ($plugin->composer_packages) {
|
||||||
$composerPackages = collect(json_decode($plugin->composer_packages, true, 512, JSON_THROW_ON_ERROR))
|
$composerPackages = collect(json_decode($plugin->composer_packages, true, 512, JSON_THROW_ON_ERROR))
|
||||||
->map(fn ($version, $package) => "'$package:$version'")
|
->map(fn ($version, $package) => "$package:$version")
|
||||||
->flatten()
|
->flatten()
|
||||||
->unique()
|
->unique()
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user