Skip to content
Snippets Groups Projects
Commit 16ed4261 authored by Sybille Peters's avatar Sybille Peters Committed by Christian Kuhn
Browse files

[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: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 85d0df50
Branches
Tags
No related merge requests found
...@@ -24,20 +24,20 @@ parameters: ...@@ -24,20 +24,20 @@ parameters:
reportUnmatchedIgnoredErrors: true reportUnmatchedIgnoredErrors: true
scanDirectories: scanDirectories:
- %currentWorkingDirectory%/typo3/sysext/ - typo3/sysext/
paths: paths:
- %currentWorkingDirectory%/typo3/sysext/ - typo3/sysext/
earlyTerminatingMethodCalls: earlyTerminatingMethodCalls:
TYPO3\CMS\Core\Resource\InaccessibleFolder: TYPO3\CMS\Core\Resource\InaccessibleFolder:
- throwInaccessibleException - throwInaccessibleException
excludes_analyse: excludes_analyse:
- %currentWorkingDirectory%/typo3/sysext/*/Tests/* - typo3/sysext/*/Tests/*
- %currentWorkingDirectory%/typo3/sysext/*/Documentation/* - typo3/sysext/*/Documentation/*
- %currentWorkingDirectory%/typo3/sysext/*/Resources/* - typo3/sysext/*/Resources/*
- %currentWorkingDirectory%/typo3/sysext/*/Configuration/* - typo3/sysext/*/Configuration/*
- %currentWorkingDirectory%/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php - typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
ignoreErrors: ignoreErrors:
- "#^Parameter \\#1 \\$disable of function libxml_disable_entity_loader expects bool, bool\\|null given\\.$#" - "#^Parameter \\#1 \\$disable of function libxml_disable_entity_loader expects bool, bool\\|null given\\.$#"
...@@ -74,10 +74,10 @@ parameters: ...@@ -74,10 +74,10 @@ parameters:
- '#Variable \$_EXTKEY might not be defined\.#' - '#Variable \$_EXTKEY might not be defined\.#'
- -
message: '#Instantiated class Composer\\Util\\Filesystem not found\.#' 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\.#' 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\\.$#" message: "#^Access to undefined constant static\\(TYPO3\\\\CMS\\\\Core\\\\Type\\\\Enumeration\\)\\:\\:__default\\.$#"
count: 1 count: 1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment