forked from algolia/search-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
22 lines (21 loc) · 1.59 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
includes:
- tests/QualityTools/vendor/phpstan/phpstan-strict-rules/rules.neon
- tests/QualityTools/vendor/localheinz/phpstan-rules/rules.neon
- tests/QualityTools/vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
parameters:
level: 3
paths:
- src
ignoreErrors:
- '#Language construct isset\(\) should not be used.#'
- '#Class "Algolia\\SearchBundle\\.*" is not allowed to extend ".*".#'
- '#Method Algolia\\SearchBundle\\.*\(\) is not final, but since the containing class is abstract, it should be.#'
- '#File is missing a "declare\(strict_types=1\)" declaration.#'
- '#Method Algolia\\SearchBundle\\DependencyInjection\\AlgoliaSearchExtension::load\(\) has a parameter .* with a type declaration of Symfony\\Component\\DependencyInjection\\ContainerBuilder, but containers should not be injected.#'
- '#(Method|Function|Constructor).*has parameter.*with.*default value.#'
- '#Class Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder constructor#'
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder::root\(\).#'
- '#Class Algolia\\SearchBundle\\Services\\NullSearchService is neither abstract nor final.#'
- '#Class Algolia\\SearchBundle\\Settings\\SettingsManager is neither abstract nor final.#'
- '#Class Algolia\\SearchBundle\\EventListener\\SearchIndexerSubscriber is neither abstract nor final.#'
- '#Method Algolia\\SearchBundle\\Model\\Aggregator::normalize\(\) has parameter .* with a nullable type declaration.#'