You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the project (including phpcs vendor folder) is run from a windows network drive (either mapped to drive, or by Path) phpcs cannot be run as it believes the config is not readable.
Code sample
N/A
Custom ruleset
N/A
To reproduce
Steps to reproduce the behavior:
Create project on mapped network drive
Run phpcs --version
See error message displayed
ERROR: Config file \\WSL$\UBUNTU\home\ubuntu\www\vendor\squizlabs\php_codesniffer\CodeSniffer.conf is not readable
ERROR: Config file U:\home\ubuntu\www\vendor\squizlabs\php_codesniffer\CodeSniffer.conf is not readable
Expected behavior
It should work
Versions (please complete the following information):
OS: Windows 10 with WSL
PHP: 7.4.21
PHPCS: 3.6.0
Standard: N/A
Additional context
It is the same issue with php's is_readable function that was worked round with this fix. d56e167
Describe the bug
When the project (including phpcs vendor folder) is run from a windows network drive (either mapped to drive, or by Path) phpcs cannot be run as it believes the config is not readable.
Code sample
N/A
Custom ruleset
N/A
To reproduce
Steps to reproduce the behavior:
Expected behavior
It should work
Versions (please complete the following information):
Additional context
It is the same issue with php's is_readable function that was worked round with this fix. d56e167
is_readable is called here.
PHP_CodeSniffer/src/Config.php
Lines 1659 to 1662 in b6d6556
is_readable should be changed to
Util\Common::isReadable
as per previous fixThe text was updated successfully, but these errors were encountered: