diff --git a/.phpcs.xml b/.phpcs.xml index 44e5cb4..36a75fd 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,14 +1,26 @@ - - + - + + + + + + + + + + tests/* - + + + tests/* + + diff --git a/composer.json b/composer.json index e7012c7..9438d2c 100644 --- a/composer.json +++ b/composer.json @@ -22,15 +22,18 @@ "mediawiki/minus-x": "1.1.3", "php-parallel-lint/php-parallel-lint": "1.4.0", "php-parallel-lint/php-console-highlighter": "1.0.0", - "phpunit/phpunit": "12.0.7" + "phpunit/phpunit": "12.0.7", + "slevomat/coding-standard": "^8.16" }, "scripts": { "test": [ - "parallel-lint . --exclude vendor --exclude node_modules", + "@lint", "@phpunit:xml", "minus-x check .", - "phpcs -p -s" + "@phpcs" ], + "lint": "parallel-lint . --exclude vendor --exclude node_modules", + "phpcs": "phpcs -p -s", "phpunit": "phpunit tests", "phpunit:xml": "@phpunit --coverage-clover .phpunit/coverage.xml", "phpunit:html": "@phpunit --coverage-html .phpunit/html/", @@ -38,9 +41,7 @@ "minus-x fix .", "phpcbf" ], - "docs": [ - "phpdoc" - ] + "docs": "phpdoc" }, "config": { "allow-plugins": { diff --git a/composer.lock b/composer.lock index 5bb9301..ab37f83 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": "546f92d68ba220ccb5d3de25a5330ee7", + "content-hash": "5397e2e487d04edb496888176ff4d76b", "packages": [], "packages-dev": [ { @@ -913,18 +913,65 @@ ], "time": "2024-05-20T13:34:27+00:00" }, + { + "name": "phpstan/phpdoc-parser", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "9b30d6fd026b2c132b3985ce6b23bec09ab3aa68" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/9b30d6fd026b2c132b3985ce6b23bec09ab3aa68", + "reference": "9b30d6fd026b2c132b3985ce6b23bec09ab3aa68", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^5.3.0", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", + "symfony/process": "^5.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.1.0" + }, + "time": "2025-02-19T13:28:12+00:00" + }, { "name": "phpunit/php-code-coverage", - "version": "12.0.4", + "version": "12.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "79e5ef5897068689c7c325554d6df905480ce942" + "reference": "da732486790670c622aa367eb3dbb7e1619e68be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/79e5ef5897068689c7c325554d6df905480ce942", - "reference": "79e5ef5897068689c7c325554d6df905480ce942", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/da732486790670c622aa367eb3dbb7e1619e68be", + "reference": "da732486790670c622aa367eb3dbb7e1619e68be", "shasum": "" }, "require": { @@ -980,7 +1027,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.0.4" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.0.5" }, "funding": [ { @@ -988,7 +1035,7 @@ "type": "github" } ], - "time": "2025-02-25T13:27:48+00:00" + "time": "2025-03-15T07:24:51+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2198,6 +2245,71 @@ ], "time": "2025-02-07T05:00:38+00:00" }, + { + "name": "slevomat/coding-standard", + "version": "8.16.0", + "source": { + "type": "git", + "url": "https://github.com/slevomat/coding-standard.git", + "reference": "7748a4282df19daf966fda1d8c60a8aec803c83a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/7748a4282df19daf966fda1d8c60a8aec803c83a", + "reference": "7748a4282df19daf966fda1d8c60a8aec803c83a", + "shasum": "" + }, + "require": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7 || ^1.0", + "php": "^7.4 || ^8.0", + "phpstan/phpdoc-parser": "^2.1.0", + "squizlabs/php_codesniffer": "^3.11.3" + }, + "require-dev": { + "phing/phing": "3.0.1", + "php-parallel-lint/php-parallel-lint": "1.4.0", + "phpstan/phpstan": "2.1.6", + "phpstan/phpstan-deprecation-rules": "2.0.1", + "phpstan/phpstan-phpunit": "2.0.4", + "phpstan/phpstan-strict-rules": "2.0.3", + "phpunit/phpunit": "9.6.8|10.5.45|11.4.4|11.5.9|12.0.4" + }, + "type": "phpcodesniffer-standard", + "extra": { + "branch-alias": { + "dev-master": "8.x-dev" + } + }, + "autoload": { + "psr-4": { + "SlevomatCodingStandard\\": "SlevomatCodingStandard/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", + "keywords": [ + "dev", + "phpcs" + ], + "support": { + "issues": "https://github.com/slevomat/coding-standard/issues", + "source": "https://github.com/slevomat/coding-standard/tree/8.16.0" + }, + "funding": [ + { + "url": "https://github.com/kukulich", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/slevomat/coding-standard", + "type": "tidelift" + } + ], + "time": "2025-02-23T18:12:49+00:00" + }, { "name": "squizlabs/php_codesniffer", "version": "3.11.3", @@ -3115,12 +3227,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { "php": ">=8.3" }, - "platform-dev": [], - "plugin-api-version": "2.3.0" + "platform-dev": {}, + "plugin-api-version": "2.6.0" }