diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index cd7b5460..e776f528 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -17,7 +17,7 @@ jobs: run: composer install --prefer-dist --no-progress --no-suggest - name: Run code sniffer - run: vendor/bin/phpcs + run: vendor/bin/phpcs --ignore=./src/Core/Logger/compatibility/*.php - name: Run test suite run: vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/Makefile b/Makefile index ca2df452..b55ab858 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,12 @@ install: composer install lint: - php vendor/bin/phpcs -n + php vendor/bin/phpcs --ignore=./src/Core/Logger/compatibility/*.php -n compatible: php vendor/bin/phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility php vendor/bin/phpcs --config-set testVersion 5.6 - php vendor/bin/phpcs -p --standard=PHPCompatibility src + php vendor/bin/phpcs -p --standard=PHPCompatibility --ignore=./src/Core/Logger/compatibility/*.php src fmt: php vendor/bin/phpcbf diff --git a/composer.json b/composer.json index ad32e332..f9027561 100644 --- a/composer.json +++ b/composer.json @@ -41,6 +41,5 @@ }, "scripts": { "test": "vendor/bin/phpunit" - }, - "include-path": ["lib/"] + } } diff --git a/lib/compatibility/DefaultLoggerPsrLogV1.php b/src/Core/Logger/compatibility/DefaultLoggerPsrLogV1.php similarity index 100% rename from lib/compatibility/DefaultLoggerPsrLogV1.php rename to src/Core/Logger/compatibility/DefaultLoggerPsrLogV1.php diff --git a/lib/compatibility/DefaultLoggerPsrLogV3.php b/src/Core/Logger/compatibility/DefaultLoggerPsrLogV3.php similarity index 100% rename from lib/compatibility/DefaultLoggerPsrLogV3.php rename to src/Core/Logger/compatibility/DefaultLoggerPsrLogV3.php diff --git a/lib/compatibility/DisabledLoggerPsrLogV1.php b/src/Core/Logger/compatibility/DisabledLoggerPsrLogV1.php similarity index 100% rename from lib/compatibility/DisabledLoggerPsrLogV1.php rename to src/Core/Logger/compatibility/DisabledLoggerPsrLogV1.php diff --git a/lib/compatibility/DisabledLoggerPsrLogV3.php b/src/Core/Logger/compatibility/DisabledLoggerPsrLogV3.php similarity index 100% rename from lib/compatibility/DisabledLoggerPsrLogV3.php rename to src/Core/Logger/compatibility/DisabledLoggerPsrLogV3.php