Skip to content

Commit

Permalink
Merge pull request #2886 from timber/fix-phpstan-tests
Browse files Browse the repository at this point in the history
Fix phpstan tests
  • Loading branch information
nlemoine authored Jan 26, 2024
2 parents 7992eee + a7b019b commit d682c7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ parameters:
paths:
- src/
scanFiles:
- tests/phpstan/bootstrap.php
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
- vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php
excludePaths:
- tests/*
- docs/*
ignoreErrors:
- '#Result of function acf_get_field_type \(void\) is used.#'
- '#Instantiated class Twig\\CacheExtension\\CacheStrategy\\GenerationalCacheStrategy not found.#'
- '#Instantiated class Twig\\CacheExtension\\Extension not found.#'
- '#Method Timber\\Loader::_get_cache_extension\(\) has invalid return type Twig\\CacheExtension\\Extension.#'
Expand Down

0 comments on commit d682c7b

Please sign in to comment.