From 16ed42611e73186c264d9494b6a4d8b171cd3866 Mon Sep 17 00:00:00 2001 From: Sybille Peters <sypets@gmx.de> Date: Sun, 19 Dec 2021 02:00:10 +0100 Subject: [PATCH] [TASK] Replace placeholders in phpstan configuration The phpstan configuration documentation recommends to specify the paths relative to the directory of the configuration file. Thus using, currentWorkingDirectory (as current working directory) is unnecessary and removed. Resolves: #96163 Releases: main Change-Id: I2b625f4722e1955b5928a22dbdd2b4aedf6daafe Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72709 Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Nikita Hovratov <nikita.h@live.de> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Nikita Hovratov <nikita.h@live.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- phpstan.neon | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 3bc4645cf337..715ce57bf1a8 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -24,20 +24,20 @@ parameters: reportUnmatchedIgnoredErrors: true scanDirectories: - - %currentWorkingDirectory%/typo3/sysext/ + - typo3/sysext/ paths: - - %currentWorkingDirectory%/typo3/sysext/ + - typo3/sysext/ earlyTerminatingMethodCalls: TYPO3\CMS\Core\Resource\InaccessibleFolder: - throwInaccessibleException excludes_analyse: - - %currentWorkingDirectory%/typo3/sysext/*/Tests/* - - %currentWorkingDirectory%/typo3/sysext/*/Documentation/* - - %currentWorkingDirectory%/typo3/sysext/*/Resources/* - - %currentWorkingDirectory%/typo3/sysext/*/Configuration/* - - %currentWorkingDirectory%/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php + - typo3/sysext/*/Tests/* + - typo3/sysext/*/Documentation/* + - typo3/sysext/*/Resources/* + - typo3/sysext/*/Configuration/* + - typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php ignoreErrors: - "#^Parameter \\#1 \\$disable of function libxml_disable_entity_loader expects bool, bool\\|null given\\.$#" @@ -74,10 +74,10 @@ parameters: - '#Variable \$_EXTKEY might not be defined\.#' - message: '#Instantiated class Composer\\Util\\Filesystem not found\.#' - path: %currentWorkingDirectory%/typo3/sysext/core/Classes/Composer/CliEntryPoint.php + path: typo3/sysext/core/Classes/Composer/CliEntryPoint.php - message: '#Parameter \$event of method [\w\\]+::\w+\(\) has invalid typehint type Composer\\Script\\Event\.#' - path: %currentWorkingDirectory%/typo3/sysext/*/Classes/Composer/* + path: typo3/sysext/*/Classes/Composer/* - message: "#^Access to undefined constant static\\(TYPO3\\\\CMS\\\\Core\\\\Type\\\\Enumeration\\)\\:\\:__default\\.$#" count: 1 -- GitLab