Skip to content

[BUG] Typo in named parameter name in call to getAllPlugins #2356

@rimi-itk

Description

@rimi-itk

What set up are you using

  • Cloud Hosted Version
  • Self Hosted

Describe the bug

In

array_map(fn ($plugin) => $plugin->foldername, $this->getApplication()->make(PluginsService::class)->getAllPlugins(enabled: true)),

getAllPlugins is called with the named parameter enabled which does not exist. The parameter is called enabledOnly, cf.
public function getAllPlugins(bool $enabledOnly = false): false|array
.

To Reproduce
Steps to reproduce the behavior:

  1. Create a plugin with a command (in «plugin»/Command/)
  2. Enable the plugin
  3. See error

Leantime Version

v3.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions