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

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

Closed
1 of 2 tasks
rimi-itk opened this issue Feb 28, 2024 · 0 comments
Closed
1 of 2 tasks

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

rimi-itk opened this issue Feb 28, 2024 · 0 comments

Comments

@rimi-itk
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant