diff --git a/.woodpecker/.ci.yml b/.woodpecker/.ci.yml index 5d640ac7..67767d4f 100644 --- a/.woodpecker/.ci.yml +++ b/.woodpecker/.ci.yml @@ -102,10 +102,8 @@ steps: depends_on: - composer-install commands: - - echo "Installing parallel-lint..." - - composer global require php-parallel-lint/php-parallel-lint --quiet - echo "Checking PHP syntax (parallel)..." - - ~/.composer/vendor/bin/parallel-lint app routes database config --colors --blame + - ./vendor/bin/parallel-lint app routes database config --colors --blame - echo "✅ PHP syntax check complete!" when: event: pull_request diff --git a/composer.json b/composer.json index 69fd2d56..d6328263 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,8 @@ "nunomaduro/collision": "^8.6", "orangehill/iseed": "^3.1", "pestphp/pest": "^4.0", - "pestphp/pest-plugin-laravel": "^4.0" + "pestphp/pest-plugin-laravel": "^4.0", + "php-parallel-lint/php-parallel-lint": "^1.4" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index de98c34d..77402ded 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "581fc0447e830b1813a3f02c80322cdd", + "content-hash": "cfdc06865134c2a0b90c33cc2a56be08", "packages": [ { "name": "anourvalar/eloquent-serialize", @@ -13129,6 +13129,67 @@ }, "time": "2025-07-22T14:01:30+00:00" }, + { + "name": "php-parallel-lint/php-parallel-lint", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/php-parallel-lint/PHP-Parallel-Lint.git", + "reference": "6db563514f27e19595a19f45a4bf757b6401194e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-parallel-lint/PHP-Parallel-Lint/zipball/6db563514f27e19595a19f45a4bf757b6401194e", + "reference": "6db563514f27e19595a19f45a4bf757b6401194e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=5.3.0" + }, + "replace": { + "grogy/php-parallel-lint": "*", + "jakub-onderka/php-parallel-lint": "*" + }, + "require-dev": { + "nette/tester": "^1.3 || ^2.0", + "php-parallel-lint/php-console-highlighter": "0.* || ^1.0", + "squizlabs/php_codesniffer": "^3.6" + }, + "suggest": { + "php-parallel-lint/php-console-highlighter": "Highlight syntax in code snippet" + }, + "bin": [ + "parallel-lint" + ], + "type": "library", + "autoload": { + "classmap": [ + "./src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Jakub Onderka", + "email": "ahoj@jakubonderka.cz" + } + ], + "description": "This tool checks the syntax of PHP files about 20x faster than serial check.", + "homepage": "https://github.com/php-parallel-lint/PHP-Parallel-Lint", + "keywords": [ + "lint", + "static analysis" + ], + "support": { + "issues": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/issues", + "source": "https://github.com/php-parallel-lint/PHP-Parallel-Lint/tree/v1.4.0" + }, + "time": "2024-03-27T12:14:49+00:00" + }, { "name": "phpdocumentor/reflection-common", "version": "2.2.0", @@ -15154,5 +15215,5 @@ "php": "^8.2" }, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" }