astra-sites
Last commit date
admin
3 years ago
assets
2 years ago
classes
2 years ago
inc
2 years ago
languages
2 years ago
.eslintignore
4 years ago
astra-sites.php
2 years ago
phpstan-baseline.neon
2 years ago
phpstan.neon
2 years ago
postcss.config.js
2 years ago
readme.txt
2 years ago
tailwind.config.js
2 years ago
webpack.config.js
2 years ago
phpstan.neon
58 lines
| 1 | # Start command: composer update --classmap-authoritative && vendor/bin/phpstan analyze |
| 2 | |
| 3 | includes: |
| 4 | - phpstan-baseline.neon # Baseline to ignore error temporary |
| 5 | # https://github.com/phpstan/phpstan/blob/master/conf/bleedingEdge.neon |
| 6 | # - vendor/phpstan/phpstan/conf/bleedingEdge.neon |
| 7 | # - phar://phpstan.phar/conf/bleedingEdge.neon |
| 8 | - vendor/szepeviktor/phpstan-wordpress/extension.neon |
| 9 | # - vendor/php-stubs/wordpress-stubs/wordpress-stubs.php |
| 10 | parameters: |
| 11 | level: 8 |
| 12 | inferPrivatePropertyTypeFromConstructor: true |
| 13 | checkGenericClassInNonGenericObjectType: false |
| 14 | stubFiles: |
| 15 | - tests/php/stubs/wordpress-override.php |
| 16 | scanFiles: |
| 17 | - %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php |
| 18 | - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php |
| 19 | - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php |
| 20 | - %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php |
| 21 | bootstrapFiles: |
| 22 | - tests/php/stubs/elementor-stubs.php |
| 23 | - tests/php/stubs/astra-sites-constants.php |
| 24 | - tests/php/stubs/astra-sites-stubs.php |
| 25 | #- tests/php/stubs/zipai-stubs.php |
| 26 | #- tests/php/stubs/astra-stubs.php |
| 27 | paths: |
| 28 | - astra-sites.php |
| 29 | - classes |
| 30 | - inc |
| 31 | |
| 32 | excludePaths: |
| 33 | - node_modules |
| 34 | - inc/lib |
| 35 | - vendor |
| 36 | |
| 37 | # autoload_files: |
| 38 | # # Missing constants, function and class stubs |
| 39 | # - %currentWorkingDirectory%/tests/phpstan/bootstrap.php |
| 40 | # # Plugin stubs |
| 41 | # - %currentWorkingDirectory%/tests/phpstan/PLUGIN-stubs.php |
| 42 | # # Procedural code |
| 43 | # - %currentWorkingDirectory%/myplugin-functions.php |
| 44 | # autoload_directories: |
| 45 | # - %currentWorkingDirectory%/inc/ |
| 46 | ignoreErrors: |
| 47 | # Uses func_get_args() |
| 48 | # - '#^Function apply_filters invoked with [34567] parameters, 2 required\.$#' |
| 49 | # - '#^Function do_action invoked with [3456] parameters, 1-2 required\.$#' |
| 50 | # - '#^Function current_user_can invoked with 2 parameters, 1 required\.$#' |
| 51 | # - '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#' |
| 52 | # - '#^Function add_theme_support invoked with [2345] parameters, 1 required\.$#' |
| 53 | # - '#^Function wp_sprintf invoked with [23456] parameters, 1 required\.$#' |
| 54 | # https://core.trac.wordpress.org/ticket/43304 |
| 55 | # - '/^Parameter #2 \$deprecated of function load_plugin_textdomain expects string, false given\.$/' |
| 56 | # WP-CLI accepts a class as callable |
| 57 | # - '/^Parameter #2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed, \S+ given\.$/' |
| 58 | # Please consider commenting ignores: issue URL or reason of ignore |