-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPStan level 1 - fix warnings and add to CI (#5932)
* PHPStan level 0 fixes * Handle ExecTrait a bit better * Add phpstan to CI * Report path * mkdir * fixes * Fixes2 * Move method down to satisfy phpstan * Remove composer.json/files. Was causing failure in testMultisiteContainer
- Loading branch information
Showing
41 changed files
with
344 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
use Composer\Autoload\ClassLoader; | ||
|
||
// Deal with dynamic autoloader that we use for symfony cross version compat. | ||
$loader = new ClassLoader(); | ||
$loader->addPsr4('Drush\\', 'src-symfony-compatibility/v6'); | ||
$loader->register(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
parameters: | ||
level: 1 | ||
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%' | ||
bootstrapFiles: | ||
- phpstan-bootstrap.php | ||
paths: | ||
- src | ||
drupal: | ||
drupal_root: sut | ||
excludePaths: | ||
# Deliberately calls optional external code. | ||
- src/Psysh/Caster.php | ||
# Remove once https://github.com/mglaman/phpstan-drupal/issues/741 is resolved | ||
- src/Commands/core/LocaleCommands.php | ||
- src/Commands/core/LanguageCommands.php | ||
ignoreErrors: | ||
# XHprof | ||
- '#tideways_xhprof_enable#' | ||
- '#tideways_xhprof_disable#' | ||
- '#Constant DRUSH_DRUPAL_CORE not found.#' | ||
- '#Constant TIDEWAYS_XHPROF_FLAGS_NO_BUILTINS not found.#' | ||
- '#Constant TIDEWAYS_XHPROF_FLAGS_CPU not found.#' | ||
- '#Constant TIDEWAYS_XHPROF_FLAGS_MEMORY not found.#' | ||
includes: | ||
- vendor/mglaman/phpstan-drupal/extension.neon |
Oops, something went wrong.