Skip to content

Commit ca8d8f4

Browse files
committed
Removing 36148
1 parent 6e4ef88 commit ca8d8f4

File tree

1 file changed

+49
-0
lines changed
  • dev/tests/static/testsuite/Magento/Test/Php/_files/phpstan

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
parameters:
2+
checkExplicitMixedMissingReturn: true
3+
checkPhpDocMissingReturn: true
4+
reportUnmatchedIgnoredErrors: false
5+
excludePaths:
6+
- %rootDir%/../../../lib/internal/Magento/Framework/ObjectManager/Test/Unit/*
7+
- %rootDir%/../../../*/_files/*
8+
- %rootDir%/../../../dev/tests/*/Fixtures/*
9+
- %rootDir%/../../../dev/tests/*/tmp/*
10+
- %rootDir%/../../../dev/tests/*/_generated/*
11+
- %rootDir%/../../../pub/*
12+
scanDirectories:
13+
- %rootDir%/../../../dev/tests/static/framework/tests/unit/testsuite/Magento
14+
- %rootDir%/../../../dev/tests/integration/framework/tests/unit/testsuite/Magento
15+
- %rootDir%/../../../dev/tests/api-functional/_files/Magento
16+
bootstrapFiles:
17+
- %rootDir%/../../../dev/tests/static/framework/autoload.php
18+
- %rootDir%/../../../dev/tests/integration/framework/autoload.php
19+
- %rootDir%/../../../dev/tests/api-functional/framework/autoload.php
20+
- %rootDir%/../../../dev/tests/setup-integration/framework/autoload.php
21+
- %rootDir%/../../../dev/tests/static/framework/Magento/PhpStan/autoload.php
22+
ignoreErrors:
23+
# Ignore PHPStan\Rules\Classes\UnusedConstructorParametersRule
24+
- '#Constructor of class [a-zA-Z0-9\\_]+ has an unused parameter#'
25+
# Ignore setCustomErrorHandler function not found in bootstrap files
26+
- '#Function setCustomErrorHandler not found#'
27+
# Ignore 'return statement is missing' error when 'void' is present in return type list
28+
- '#Method (?:.*?) should return (?:.*?)void(?:.*?) but return statement is missing.#'
29+
# Ignore constants, defined dynamically.
30+
- '#Constant TESTS_WEB_API_ADAPTER not found.#'
31+
- '#Constant TESTS_BASE_URL not found.#'
32+
- '#Constant TESTS_XDEBUG_ENABLED not found.#'
33+
- '#Constant TESTS_XDEBUG_SESSION not found.#'
34+
- '#Constant INTEGRATION_TESTS_DIR not found.#'
35+
- '#Constant MAGENTO_MODULES_PATH not found.#'
36+
- '#Constant TESTS_MODULES_PATH not found.#'
37+
- '#Constant TESTS_INSTALLATION_DB_CONFIG_FILE not found.#'
38+
- '#Constant T_[A-Z_]+ not found.#'
39+
40+
41+
services:
42+
-
43+
class: Magento\PhpStan\Reflection\Php\DataObjectClassReflectionExtension
44+
tags: {phpstan.broker.methodsClassReflectionExtension: {priority: 100}}
45+
46+
errorFormatter.filtered:
47+
class: Magento\PhpStan\Formatters\FilteredErrorFormatter
48+
arguments:
49+
tableErrorFormatter: @errorFormatter.table

0 commit comments

Comments
 (0)