Skip to content

Commit abbf66e

Browse files
authored
Added ibexa/phpstan rules (#2977)
* Added ibexa/phpstan rules * PHP & JS CS Fixes
1 parent e63fbda commit abbf66e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

code_samples/back_office/search/src/EventSubscriber/MySuggestionEventSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function onBuildSuggestionCollectionEvent(BuildSuggestionCollectionEvent
4141

4242
try {
4343
$productQuery = new ProductQuery(null, new Criterion\LogicalOr([
44-
new Criterion\ProductName(implode(' ', array_map(static function (string $word) {
44+
new Criterion\ProductName(implode(' ', array_map(static function (string $word): string {
4545
return "$word*";
4646
}, $words))),
4747
new Criterion\ProductCode($words),

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"ibexa/product-catalog-symbol-attribute": "~4.6.x-dev",
7575
"ibexa/messenger": "~4.6.x-dev",
7676
"ibexa/collaboration": "~4.6.x-dev",
77-
"ibexa/share": "~4.6.x-dev"
77+
"ibexa/share": "~4.6.x-dev",
78+
"ibexa/phpstan": "~4.6.-dev"
7879
},
7980
"scripts": {
8081
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php -v --show-progress=dots",

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
includes:
22
- phpstan-baseline.neon
33
- vendor/phpstan/phpstan-symfony/extension.neon
4+
- vendor/ibexa/phpstan/extension.neon
45

56
parameters:
67
level: 8

0 commit comments

Comments
 (0)