Skip to content

Update exclusion path for composer-classes.php#5

Open
boboldehampsink wants to merge 1 commit intocraftcms:mainfrom
boboldehampsink:patch-1
Open

Update exclusion path for composer-classes.php#5
boboldehampsink wants to merge 1 commit intocraftcms:mainfrom
boboldehampsink:patch-1

Conversation

@boboldehampsink
Copy link

Description

Fixes

PHPStan process exited with error  filteredErr=Invalid entry in excludePaths:
Path "/vendor/craftcms/cms/src/config/composer-classes.php" is neither a directory, nor a file path, nor a fnmatch pattern.
If the excluded path can sometimes exist, append (?)
to its config entry to mark it as optional. Example:
parameters:
excludePaths:
analyseAndScan:
- vendor/craftcms/cms/src/config/composer-classes.php (?)  rawErr=Invalid entry in excludePaths:
Path "/vendor/craftcms/cms/src/config/composer-classes.php" is neither a directory, nor a file path, nor a fnmatch pattern.

If the excluded path can sometimes exist, append (?)
to its config entry to mark it as optional. Example:

parameters:
	excludePaths:
		analyseAndScan:
			- vendor/craftcms/cms/src/config/composer-classes.php (?)

Related issues

Fixes #2

@boboldehampsink
Copy link
Author

Perhaps even better to just remove it, as #4 does

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid entry composer-classes.php in excludePaths

1 participant