Task #96163
closedReplace currentworkingdir in phpstan.neon?
100%
Description
There are two predefined parameters usable to expand in config parameters that represent paths:
rootDir - root directory where PHPStan resides (i.e. vendor/phpstan/phpstan in Composer installation)
currentWorkingDirectory - current working directory where PHPStan was executed
These are no longer very useful as all relative paths in config parameters are resolved based on the directory of the config file is in, resulting in a short and concise notation.
Thus, you don't need currentworkingdir. You can write the path relative to the path the .neon file is in, it does not matter where phpstan is executed.
Updated by Sybille Peters over 2 years ago
- Related to Task #93966: Use %currentWorkingDirectory% in phpstan config files added
Updated by Benni Mack over 2 years ago
- Status changed from New to Needs Feedback
Can you provide a patch?
Updated by Sybille Peters over 2 years ago
- Status changed from Needs Feedback to New
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72709
Updated by Sybille Peters over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 16ed42611e73186c264d9494b6a4d8b171cd3866.