Skip to content

Commit

Permalink
[TASK] Show message in configuration module if no extensions are inst…
Browse files Browse the repository at this point in the history
…alled
  • Loading branch information
brotkrueml committed Dec 3, 2022
1 parent 4f77b97 commit 878fccd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ConfigurationModule/ExtensionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getLabel(): string
public function getConfiguration(): array
{
$extensions = $this->extensionRegistry->getAllExtensions();
if ($extensions === []) {
if (\count($extensions) === 0) {
return ['No extensions available'];
}

Expand Down
5 changes: 5 additions & 0 deletions phpstan.baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$value of function count expects array\\|Countable, iterable\\<Brotkrueml\\\\FeedGenerator\\\\Contract\\\\JsonExtensionInterface\\|Brotkrueml\\\\FeedGenerator\\\\Contract\\\\XmlExtensionInterface\\> given\\.$#"
count: 1
path: Classes/ConfigurationModule/ExtensionProvider.php

-
message: "#^Method Brotkrueml\\\\FeedGenerator\\\\Entity\\\\AbstractFeed\\:\\:getAuthors\\(\\) should return Brotkrueml\\\\FeedGenerator\\\\Collection\\\\Collection\\<Brotkrueml\\\\FeedGenerator\\\\Contract\\\\AuthorInterface\\> but returns Brotkrueml\\\\FeedGenerator\\\\Collection\\\\Collection\\<Brotkrueml\\\\FeedGenerator\\\\Contract\\\\CollectableInterface\\>\\.$#"
count: 1
Expand Down

0 comments on commit 878fccd

Please sign in to comment.