diff --git a/.github/settings.yml b/.github/settings.yml index dccc44a..2ed6882 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -14,13 +14,16 @@ branches: required_approving_review_count: 1 required_status_checks: checks: - - context: "Code Coverage (8.0, locked)" - - context: "Coding Standards (8.0, locked)" - - context: "Dependency Analysis (8.0, locked)" - - context: "Mutation Tests (8.0, locked)" - - context: "Refactoring (8.0, locked)" - - context: "Security Analysis (8.0, locked)" - - context: "Static Code Analysis (8.0, locked)" + - context: "Code Coverage (7.4, locked)" + - context: "Coding Standards (7.4, locked)" + - context: "Dependency Analysis (7.4, locked)" + - context: "Mutation Tests (7.4, locked)" + - context: "Refactoring (7.4, locked)" + - context: "Security Analysis (7.4, locked)" + - context: "Static Code Analysis (7.4, locked)" + - context: "Tests (7.4, highest)" + - context: "Tests (7.4, locked)" + - context: "Tests (7.4, lowest)" - context: "Tests (8.0, highest)" - context: "Tests (8.0, locked)" - context: "Tests (8.0, lowest)" diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 7e6ab6a..0f8355e 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -19,7 +19,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -80,7 +80,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -149,7 +149,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -205,7 +205,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -257,7 +257,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -316,7 +316,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -366,7 +366,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" @@ -417,6 +417,7 @@ jobs: fail-fast: false matrix: php-version: + - "7.4" - "8.0" - "8.1" - "8.2" diff --git a/.github/workflows/renew.yaml b/.github/workflows/renew.yaml index 5ba5740..7663a96 100644 --- a/.github/workflows/renew.yaml +++ b/.github/workflows/renew.yaml @@ -17,7 +17,7 @@ jobs: strategy: matrix: php-version: - - "8.0" + - "7.4" dependencies: - "locked" diff --git a/.phive/phars.xml b/.phive/phars.xml index f71d3ad..aefe788 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,4 +1,4 @@ - + diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 21233ea..a911ead 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -26,7 +26,7 @@ $license->save(); -$ruleSet = PhpCsFixer\Config\RuleSet\Php80::create()->withHeader($license->header()); +$ruleSet = PhpCsFixer\Config\RuleSet\Php74::create()->withHeader($license->header()); $config = PhpCsFixer\Config\Factory::fromRuleSet($ruleSet); diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c9f7e1..13f9954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ For a full diff see [`1.0.0...main`][1.0.0...main]. ### Added - Added support for PHP 8.0 ([#77]), by [@localheinz] +- Added support for PHP 7.4 ([#78]), by [@localheinz] ## [`1.0.0`][1.0.0] diff --git a/composer-require-checker.json b/composer-require-checker.json index 6741634..289b8e2 100644 --- a/composer-require-checker.json +++ b/composer-require-checker.json @@ -1,5 +1,9 @@ { "symbol-whitelist": [ - "bcadd" + "bcadd", + "bool", + "int", + "self", + "string" ] } diff --git a/composer.json b/composer.json index 031e0c2..28dc901 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "security": "https://github.com/ergebnis/version/blob/main/.github/SECURITY.md" }, "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "require-dev": { "ext-bcmath": "*", @@ -31,7 +31,7 @@ "ergebnis/php-cs-fixer-config": "^6.23.0", "ergebnis/phpunit-slow-test-detector": "^2.10.0", "fakerphp/faker": "^1.23.1", - "infection/infection": "~0.26.19", + "infection/infection": "~0.26.6", "phpunit/phpunit": "^9.6.17", "psalm/plugin-phpunit": "~0.18.4", "rector/rector": "^1.0.2", @@ -60,7 +60,7 @@ "abandoned": "report" }, "platform": { - "php": "8.0.30" + "php": "7.4.33" }, "preferred-install": "dist", "sort-packages": true diff --git a/composer.lock b/composer.lock index 4a9ba9a..910d7aa 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": "46aaefe69036cd620b7340ac024e3352", + "content-hash": "23fd03c58c4aea86b1a90fa8a2b0119b", "packages": [], "packages-dev": [ { @@ -173,97 +173,6 @@ ], "time": "2021-03-30T17:13:30+00:00" }, - { - "name": "colinodell/json5", - "version": "v2.3.0", - "source": { - "type": "git", - "url": "https://github.com/colinodell/json5.git", - "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/colinodell/json5/zipball/15b063f8cb5e6deb15f0cd39123264ec0d19c710", - "reference": "15b063f8cb5e6deb15f0cd39123264ec0d19c710", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-mbstring": "*", - "php": "^7.1.3|^8.0" - }, - "conflict": { - "scrutinizer/ocular": "1.7.*" - }, - "require-dev": { - "mikehaertl/php-shellcommand": "^1.2.5", - "phpstan/phpstan": "^1.4", - "scrutinizer/ocular": "^1.6", - "squizlabs/php_codesniffer": "^2.3 || ^3.0", - "symfony/finder": "^4.4|^5.4|^6.0", - "symfony/phpunit-bridge": "^5.4|^6.0" - }, - "bin": [ - "bin/json5" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "3.0-dev" - } - }, - "autoload": { - "files": [ - "src/global.php" - ], - "psr-4": { - "ColinODell\\Json5\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Colin O'Dell", - "email": "colinodell@gmail.com", - "homepage": "https://www.colinodell.com", - "role": "Developer" - } - ], - "description": "UTF-8 compatible JSON5 parser for PHP", - "homepage": "https://github.com/colinodell/json5", - "keywords": [ - "JSON5", - "json", - "json5_decode", - "json_decode" - ], - "support": { - "issues": "https://github.com/colinodell/json5/issues", - "source": "https://github.com/colinodell/json5/tree/v2.3.0" - }, - "funding": [ - { - "url": "https://www.colinodell.com/sponsor", - "type": "custom" - }, - { - "url": "https://www.paypal.me/colinpodell/10.00", - "type": "custom" - }, - { - "url": "https://github.com/colinodell", - "type": "github" - }, - { - "url": "https://www.patreon.com/colinodell", - "type": "patreon" - } - ], - "time": "2022-12-27T16:44:40+00:00" - }, { "name": "composer/package-versions-deprecated", "version": "1.11.99.5", @@ -1607,16 +1516,16 @@ }, { "name": "fidry/cpu-core-counter", - "version": "0.4.1", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2" + "reference": "f92996c4d5c1a696a6a970e20f7c4216200fcc42" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/79261cc280aded96d098e1b0e0ba0c4881b432c2", - "reference": "79261cc280aded96d098e1b0e0ba0c4881b432c2", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/f92996c4d5c1a696a6a970e20f7c4216200fcc42", + "reference": "f92996c4d5c1a696a6a970e20f7c4216200fcc42", "shasum": "" }, "require": { @@ -1624,13 +1533,13 @@ }, "require-dev": { "fidry/makefile": "^0.2.0", + "fidry/php-cs-fixer-config": "^1.1.2", "phpstan/extension-installer": "^1.2.0", "phpstan/phpstan": "^1.9.2", "phpstan/phpstan-deprecation-rules": "^1.0.0", "phpstan/phpstan-phpunit": "^1.2.2", "phpstan/phpstan-strict-rules": "^1.4.4", - "phpunit/phpunit": "^9.5.26 || ^8.5.31", - "theofidry/php-cs-fixer-config": "^1.0", + "phpunit/phpunit": "^8.5.31 || ^9.5.26", "webmozarts/strict-phpunit": "^7.5" }, "type": "library", @@ -1656,7 +1565,7 @@ ], "support": { "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/0.4.1" + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.1.0" }, "funding": [ { @@ -1664,7 +1573,7 @@ "type": "github" } ], - "time": "2022-12-16T22:01:02+00:00" + "time": "2024-02-07T09:43:46+00:00" }, { "name": "friendsofphp/php-cs-fixer", @@ -1937,63 +1846,61 @@ }, { "name": "infection/infection", - "version": "0.26.19", + "version": "0.26.6", "source": { "type": "git", "url": "https://github.com/infection/infection.git", - "reference": "bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f" + "reference": "de9b6b92f00ff1cb39decddf95797a4ebec3a1ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f", - "reference": "bd7351c88f3a797ea8977e68fe6a3f4d4c5f457f", + "url": "https://api.github.com/repos/infection/infection/zipball/de9b6b92f00ff1cb39decddf95797a4ebec3a1ee", + "reference": "de9b6b92f00ff1cb39decddf95797a4ebec3a1ee", "shasum": "" }, "require": { - "colinodell/json5": "^2.2", "composer-runtime-api": "^2.0", "composer/xdebug-handler": "^2.0 || ^3.0", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", - "ext-mbstring": "*", - "fidry/cpu-core-counter": "^0.4.0", "infection/abstract-testframework-adapter": "^0.5.0", "infection/extension-installer": "^0.1.0", "infection/include-interceptor": "^0.2.5", "justinrainbow/json-schema": "^5.2.10", - "nikic/php-parser": "^4.15.1", + "nikic/php-parser": "^4.13.2", "ondram/ci-detector": "^4.1.0", - "php": "^8.0", + "php": "^7.4.7 || ^8.0", "sanmai/later": "^0.1.1", "sanmai/pipeline": "^5.1 || ^6", - "sebastian/diff": "^3.0.2 || ^4.0 || ^5.0", - "symfony/console": "^5.4 || ^6.0", - "symfony/filesystem": "^5.4 || ^6.0", - "symfony/finder": "^5.4 || ^6.0", - "symfony/process": "^5.4 || ^6.0", - "thecodingmachine/safe": "^2.1.2", - "webmozart/assert": "^1.11" + "sebastian/diff": "^3.0.2 || ^4.0", + "seld/jsonlint": "^1.7", + "symfony/console": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "symfony/filesystem": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "symfony/finder": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "symfony/process": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "thecodingmachine/safe": "^1.1.3", + "webmozart/assert": "^1.3", + "webmozart/path-util": "^2.3" }, "conflict": { - "dg/bypass-finals": "<1.4.1", - "phpunit/php-code-coverage": ">9,<9.1.4 || >9.2.17,<9.2.21" + "dg/bypass-finals": "*", + "phpunit/php-code-coverage": ">9 <9.1.4" }, "require-dev": { "brianium/paratest": "^6.3", "ext-simplexml": "*", - "fidry/makefile": "^0.2.0", "helmich/phpunit-json-assert": "^3.0", "phpspec/prophecy-phpunit": "^2.0", "phpstan/extension-installer": "^1.1.0", - "phpstan/phpstan": "^1.3.0", + "phpstan/phpstan": "^1.2.0", "phpstan/phpstan-phpunit": "^1.0.0", "phpstan/phpstan-strict-rules": "^1.1.0", "phpstan/phpstan-webmozart-assert": "^1.0.2", - "phpunit/phpunit": "^9.5.5", - "symfony/phpunit-bridge": "^5.4 || ^6.0", - "symfony/yaml": "^5.4 || ^6.0", - "thecodingmachine/phpstan-safe-rule": "^1.2.0" + "phpunit/phpunit": "^9.3.11", + "symfony/phpunit-bridge": "^4.4.18 || ^5.1.10", + "symfony/yaml": "^5.0", + "thecodingmachine/phpstan-safe-rule": "^1.1.0" }, "bin": [ "bin/infection" @@ -2049,7 +1956,7 @@ ], "support": { "issues": "https://github.com/infection/infection/issues", - "source": "https://github.com/infection/infection/tree/0.26.19" + "source": "https://github.com/infection/infection/tree/0.26.6" }, "funding": [ { @@ -2061,7 +1968,7 @@ "type": "open_collective" } ], - "time": "2023-02-05T21:47:26+00:00" + "time": "2022-03-07T11:40:30+00:00" }, { "name": "justinrainbow/json-schema", @@ -3465,30 +3372,30 @@ }, { "name": "psr/log", - "version": "3.0.0", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", - "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", "shasum": "" }, "require": { - "php": ">=8.0.0" + "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "src" + "Psr\\Log\\": "Psr/Log/" } }, "notification-url": "https://packagist.org/downloads/", @@ -3509,9 +3416,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/3.0.0" + "source": "https://github.com/php-fig/log/tree/1.1.4" }, - "time": "2021-07-14T16:46:02+00:00" + "time": "2021-05-03T11:20:27+00:00" }, { "name": "rector/rector", @@ -4662,27 +4569,92 @@ ], "time": "2020-09-28T06:39:44+00:00" }, + { + "name": "seld/jsonlint", + "version": "1.10.2", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/jsonlint.git", + "reference": "9bb7db07b5d66d90f6ebf542f09fc67d800e5259" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/9bb7db07b5d66d90f6ebf542f09fc67d800e5259", + "reference": "9bb7db07b5d66d90f6ebf542f09fc67d800e5259", + "shasum": "" + }, + "require": { + "php": "^5.3 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.5", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13" + }, + "bin": [ + "bin/jsonlint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Seld\\JsonLint\\": "src/Seld/JsonLint/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "JSON Linter", + "keywords": [ + "json", + "linter", + "parser", + "validator" + ], + "support": { + "issues": "https://github.com/Seldaek/jsonlint/issues", + "source": "https://github.com/Seldaek/jsonlint/tree/1.10.2" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/seld/jsonlint", + "type": "tidelift" + } + ], + "time": "2024-02-07T12:57:50+00:00" + }, { "name": "spatie/array-to-xml", - "version": "3.2.3", + "version": "2.17.1", "source": { "type": "git", "url": "https://github.com/spatie/array-to-xml.git", - "reference": "c95fd4db94ec199f798d4b5b4a81757bd20d88ab" + "reference": "5cbec9c6ab17e320c58a259f0cebe88bde4a7c46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/c95fd4db94ec199f798d4b5b4a81757bd20d88ab", - "reference": "c95fd4db94ec199f798d4b5b4a81757bd20d88ab", + "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/5cbec9c6ab17e320c58a259f0cebe88bde4a7c46", + "reference": "5cbec9c6ab17e320c58a259f0cebe88bde4a7c46", "shasum": "" }, "require": { "ext-dom": "*", - "php": "^8.0" + "php": "^7.4|^8.0" }, "require-dev": { "mockery/mockery": "^1.2", "pestphp/pest": "^1.21", + "phpunit/phpunit": "^9.0", "spatie/pest-plugin-snapshots": "^1.1" }, "type": "library", @@ -4711,7 +4683,7 @@ "xml" ], "support": { - "source": "https://github.com/spatie/array-to-xml/tree/3.2.3" + "source": "https://github.com/spatie/array-to-xml/tree/2.17.1" }, "funding": [ { @@ -4723,46 +4695,50 @@ "type": "github" } ], - "time": "2024-02-07T10:39:02+00:00" + "time": "2022-12-26T08:22:07+00:00" }, { "name": "symfony/console", - "version": "v6.0.19", + "version": "v5.4.36", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed" + "reference": "39f75d9d73d0c11952fdcecf4877b4d0f62a8f6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/c3ebc83d031b71c39da318ca8b7a07ecc67507ed", - "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed", + "url": "https://api.github.com/repos/symfony/console/zipball/39f75d9d73d0c11952fdcecf4877b4d0f62a8f6e", + "reference": "39f75d9d73d0c11952fdcecf4877b4d0f62a8f6e", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.4|^6.0" + "symfony/string": "^5.1|^6.0" }, "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" + "psr/log": ">=3", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" }, "provide": { - "psr/log-implementation": "1.0|2.0|3.0" + "psr/log-implementation": "1.0|2.0" }, "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/event-dispatcher": "^5.4|^6.0", - "symfony/lock": "^5.4|^6.0", - "symfony/process": "^5.4|^6.0", - "symfony/var-dumper": "^5.4|^6.0" + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" }, "suggest": { "psr/log": "For using the console logger", @@ -4797,12 +4773,12 @@ "homepage": "https://symfony.com", "keywords": [ "cli", - "command line", + "command-line", "console", "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.0.19" + "source": "https://github.com/symfony/console/tree/v5.4.36" }, "funding": [ { @@ -4818,29 +4794,29 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2024-02-20T16:33:57+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.2", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", - "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66", + "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "2.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -4869,7 +4845,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2" + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" }, "funding": [ { @@ -4885,42 +4861,44 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-01-02T09:53:40+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v6.0.19", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "2eaf8e63bc5b8cefabd4a800157f0d0c094f677a" + "reference": "7a69a85c7ea5bdd1e875806a99c51a87d3a74b38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2eaf8e63bc5b8cefabd4a800157f0d0c094f677a", - "reference": "2eaf8e63bc5b8cefabd4a800157f0d0c094f677a", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7a69a85c7ea5bdd1e875806a99c51a87d3a74b38", + "reference": "7a69a85c7ea5bdd1e875806a99c51a87d3a74b38", "shasum": "" }, "require": { - "php": ">=8.0.2", - "symfony/event-dispatcher-contracts": "^2|^3" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/event-dispatcher-contracts": "^2|^3", + "symfony/polyfill-php80": "^1.16" }, "conflict": { - "symfony/dependency-injection": "<5.4" + "symfony/dependency-injection": "<4.4" }, "provide": { "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0|3.0" + "symfony/event-dispatcher-implementation": "2.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/error-handler": "^5.4|^6.0", - "symfony/expression-language": "^5.4|^6.0", - "symfony/http-foundation": "^5.4|^6.0", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/expression-language": "^4.4|^5.0|^6.0", + "symfony/http-foundation": "^4.4|^5.0|^6.0", "symfony/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^5.4|^6.0" + "symfony/stopwatch": "^4.4|^5.0|^6.0" }, "suggest": { "symfony/dependency-injection": "", @@ -4952,7 +4930,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v6.0.19" + "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.35" }, "funding": [ { @@ -4968,24 +4946,24 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.0.2", + "version": "v2.5.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "7bc61cc2db649b4637d331240c5346dcc7708051" + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051", - "reference": "7bc61cc2db649b4637d331240c5346dcc7708051", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/f98b54df6ad059855739db6fcbc2d36995283fe1", + "reference": "f98b54df6ad059855739db6fcbc2d36995283fe1", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=7.2.5", "psr/event-dispatcher": "^1" }, "suggest": { @@ -4994,7 +4972,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "2.5-dev" }, "thanks": { "name": "symfony/contracts", @@ -5031,7 +5009,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.2" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" }, "funding": [ { @@ -5047,26 +5025,27 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-01-02T09:53:40+00:00" }, { "name": "symfony/filesystem", - "version": "v6.0.19", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214" + "reference": "5a553607d4ffbfa9c0ab62facadea296c9db7086" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/3d49eec03fda1f0fc19b7349fbbe55ebc1004214", - "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/5a553607d4ffbfa9c0ab62facadea296c9db7086", + "reference": "5a553607d4ffbfa9c0ab62facadea296c9db7086", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=7.2.5", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8" + "symfony/polyfill-mbstring": "~1.8", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -5094,7 +5073,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v6.0.19" + "source": "https://github.com/symfony/filesystem/tree/v5.4.35" }, "funding": [ { @@ -5110,24 +5089,26 @@ "type": "tidelift" } ], - "time": "2023-01-20T17:44:14+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/finder", - "version": "v6.0.19", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11" + "reference": "abe6d6f77d9465fed3cd2d029b29d03b56b56435" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/5cc9cac6586fc0c28cd173780ca696e419fefa11", - "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11", + "url": "https://api.github.com/repos/symfony/finder/zipball/abe6d6f77d9465fed3cd2d029b29d03b56b56435", + "reference": "abe6d6f77d9465fed3cd2d029b29d03b56b56435", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -5155,7 +5136,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.0.19" + "source": "https://github.com/symfony/finder/tree/v5.4.35" }, "funding": [ { @@ -5171,25 +5152,27 @@ "type": "tidelift" } ], - "time": "2023-01-20T17:44:14+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/options-resolver", - "version": "v6.0.19", + "version": "v5.4.21", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3" + "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/6a180d1c45e0d9797470ca9eb46215692de00fa3", - "reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", + "reference": "4fe5cf6ede71096839f0e4b4444d65dd3a7c1eb9", "shasum": "" }, "require": { - "php": ">=8.0.2", - "symfony/deprecation-contracts": "^2.1|^3" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php73": "~1.0", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -5222,7 +5205,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v6.0.19" + "source": "https://github.com/symfony/options-resolver/tree/v5.4.21" }, "funding": [ { @@ -5238,7 +5221,7 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2023-02-14T08:03:56+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5558,6 +5541,82 @@ ], "time": "2024-01-29T20:11:03+00:00" }, + { + "name": "symfony/polyfill-php73", + "version": "v1.29.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "21bd091060673a1177ae842c0ef8fe30893114d2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/21bd091060673a1177ae842c0ef8fe30893114d2", + "reference": "21bd091060673a1177ae842c0ef8fe30893114d2", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" + }, { "name": "symfony/polyfill-php80", "version": "v1.29.0", @@ -5716,20 +5775,21 @@ }, { "name": "symfony/process", - "version": "v6.0.19", + "version": "v5.4.36", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "2114fd60f26a296cc403a7939ab91478475a33d4" + "reference": "4fdf34004f149cc20b2f51d7d119aa500caad975" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4", - "reference": "2114fd60f26a296cc403a7939ab91478475a33d4", + "url": "https://api.github.com/repos/symfony/process/zipball/4fdf34004f149cc20b2f51d7d119aa500caad975", + "reference": "4fdf34004f149cc20b2f51d7d119aa500caad975", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=7.2.5", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -5757,7 +5817,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v6.0.19" + "source": "https://github.com/symfony/process/tree/v5.4.36" }, "funding": [ { @@ -5773,40 +5833,33 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2024-02-12T15:49:53+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.0.2", + "version": "v1.1.2", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66" + "reference": "191afdcb5804db960d26d8566b7e9a2843cab3a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d78d39c1599bd1188b8e26bb341da52c3c6d8a66", - "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/191afdcb5804db960d26d8566b7e9a2843cab3a0", + "reference": "191afdcb5804db960d26d8566b7e9a2843cab3a0", "shasum": "" }, "require": { - "php": ">=8.0.2", - "psr/container": "^2.0" - }, - "conflict": { - "ext-psr": "<1.1|>=2" + "php": "^7.1.3" }, "suggest": { + "psr/container": "", "symfony/service-implementation": "" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" + "dev-master": "1.1-dev" } }, "autoload": { @@ -5839,40 +5892,26 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.0.2" + "source": "https://github.com/symfony/service-contracts/tree/v1.1.2" }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2022-05-30T19:17:58+00:00" + "time": "2019-05-28T07:50:59+00:00" }, { "name": "symfony/stopwatch", - "version": "v6.0.19", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "011e781839dd1d2eb8119f65ac516a530f60226d" + "reference": "887762aa99ff16f65dc8b48aafead415f942d407" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/011e781839dd1d2eb8119f65ac516a530f60226d", - "reference": "011e781839dd1d2eb8119f65ac516a530f60226d", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/887762aa99ff16f65dc8b48aafead415f942d407", + "reference": "887762aa99ff16f65dc8b48aafead415f942d407", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=7.2.5", "symfony/service-contracts": "^1|^2|^3" }, "type": "library", @@ -5901,7 +5940,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v6.0.19" + "source": "https://github.com/symfony/stopwatch/tree/v5.4.35" }, "funding": [ { @@ -5917,37 +5956,38 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/string", - "version": "v6.0.19", + "version": "v5.4.36", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a" + "reference": "4e232c83622bd8cd32b794216aa29d0d266d353b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d9e72497367c23e08bf94176d2be45b00a9d232a", - "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a", + "url": "https://api.github.com/repos/symfony/string/zipball/4e232c83622bd8cd32b794216aa29d0d266d353b", + "reference": "4e232c83622bd8cd32b794216aa29d0d266d353b", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=7.2.5", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0" + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php80": "~1.15" }, "conflict": { - "symfony/translation-contracts": "<2.0" + "symfony/translation-contracts": ">=3.0" }, "require-dev": { - "symfony/error-handler": "^5.4|^6.0", - "symfony/http-client": "^5.4|^6.0", - "symfony/translation-contracts": "^2.0|^3.0", - "symfony/var-exporter": "^5.4|^6.0" + "symfony/error-handler": "^4.4|^5.0|^6.0", + "symfony/http-client": "^4.4|^5.0|^6.0", + "symfony/translation-contracts": "^1.1|^2", + "symfony/var-exporter": "^4.4|^5.0|^6.0" }, "type": "library", "autoload": { @@ -5986,7 +6026,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.19" + "source": "https://github.com/symfony/string/tree/v5.4.36" }, "funding": [ { @@ -6002,50 +6042,43 @@ "type": "tidelift" } ], - "time": "2023-01-01T08:36:10+00:00" + "time": "2024-02-01T08:49:30+00:00" }, { "name": "thecodingmachine/safe", - "version": "v2.5.0", + "version": "v1.3.3", "source": { "type": "git", "url": "https://github.com/thecodingmachine/safe.git", - "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0" + "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/3115ecd6b4391662b4931daac4eba6b07a2ac1f0", - "reference": "3115ecd6b4391662b4931daac4eba6b07a2ac1f0", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/a8ab0876305a4cdaef31b2350fcb9811b5608dbc", + "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc", "shasum": "" }, "require": { - "php": "^8.0" + "php": ">=7.2" }, "require-dev": { - "phpstan/phpstan": "^1.5", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^0.12", "squizlabs/php_codesniffer": "^3.2", - "thecodingmachine/phpstan-strict-rules": "^1.0" + "thecodingmachine/phpstan-strict-rules": "^0.12" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2.x-dev" + "dev-master": "0.1-dev" } }, "autoload": { "files": [ "deprecated/apc.php", - "deprecated/array.php", - "deprecated/datetime.php", "deprecated/libevent.php", - "deprecated/misc.php", - "deprecated/password.php", "deprecated/mssql.php", "deprecated/stats.php", - "deprecated/strings.php", "lib/special_cases.php", - "deprecated/mysqli.php", "generated/apache.php", "generated/apcu.php", "generated/array.php", @@ -6066,7 +6099,6 @@ "generated/fpm.php", "generated/ftp.php", "generated/funchand.php", - "generated/gettext.php", "generated/gmp.php", "generated/gnupg.php", "generated/hash.php", @@ -6076,6 +6108,7 @@ "generated/image.php", "generated/imap.php", "generated/info.php", + "generated/ingres-ii.php", "generated/inotify.php", "generated/json.php", "generated/ldap.php", @@ -6084,14 +6117,20 @@ "generated/mailparse.php", "generated/mbstring.php", "generated/misc.php", + "generated/msql.php", "generated/mysql.php", + "generated/mysqli.php", + "generated/mysqlndMs.php", + "generated/mysqlndQc.php", "generated/network.php", "generated/oci8.php", "generated/opcache.php", "generated/openssl.php", "generated/outcontrol.php", + "generated/password.php", "generated/pcntl.php", "generated/pcre.php", + "generated/pdf.php", "generated/pgsql.php", "generated/posix.php", "generated/ps.php", @@ -6102,6 +6141,7 @@ "generated/sem.php", "generated/session.php", "generated/shmop.php", + "generated/simplexml.php", "generated/sockets.php", "generated/sodium.php", "generated/solr.php", @@ -6124,13 +6164,13 @@ "generated/zip.php", "generated/zlib.php" ], - "classmap": [ - "lib/DateTime.php", - "lib/DateTimeImmutable.php", - "lib/Exceptions/", - "deprecated/Exceptions/", - "generated/Exceptions/" - ] + "psr-4": { + "Safe\\": [ + "lib/", + "deprecated/", + "generated/" + ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -6139,9 +6179,9 @@ "description": "PHP core functions that throw exceptions instead of returning FALSE on error", "support": { "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v2.5.0" + "source": "https://github.com/thecodingmachine/safe/tree/v1.3.3" }, - "time": "2023-04-05T11:54:14+00:00" + "time": "2020-10-28T17:51:34+00:00" }, { "name": "theseer/tokenizer", @@ -6360,6 +6400,57 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" + }, + { + "name": "webmozart/path-util", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/path-util.git", + "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725", + "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "webmozart/assert": "~1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\PathUtil\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.", + "support": { + "issues": "https://github.com/webmozart/path-util/issues", + "source": "https://github.com/webmozart/path-util/tree/2.3.0" + }, + "abandoned": "symfony/filesystem", + "time": "2015-12-17T08:42:14+00:00" } ], "aliases": [], @@ -6368,13 +6459,13 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" }, "platform-dev": { "ext-bcmath": "*" }, "platform-overrides": { - "php": "8.0.30" + "php": "7.4.33" }, "plugin-api-version": "2.6.0" } diff --git a/rector.php b/rector.php index c0a5acf..b3e7d01 100644 --- a/rector.php +++ b/rector.php @@ -26,7 +26,7 @@ __DIR__ . '/test/', ]); - $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_80); + $rectorConfig->phpVersion(ValueObject\PhpVersion::PHP_74); $rectorConfig->rules([ Php81\Rector\Property\ReadOnlyPropertyRector::class, diff --git a/src/BuildMetaData.php b/src/BuildMetaData.php index df1939c..12e805d 100644 --- a/src/BuildMetaData.php +++ b/src/BuildMetaData.php @@ -20,9 +20,11 @@ final class BuildMetaData * @see https://regex101.com/r/Ly7O1x/3/ */ private const REGEX = '/^(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)$/'; + private string $value; - private function __construct(private string $value) + private function __construct(string $value) { + $this->value = $value; } /** diff --git a/src/Major.php b/src/Major.php index d84af2f..691eb7a 100644 --- a/src/Major.php +++ b/src/Major.php @@ -20,9 +20,11 @@ final class Major * @see https://regex101.com/r/Ly7O1x/3/ */ private const REGEX = '/^(?P0|[1-9]\d*)$/'; + private string $value; - private function __construct(private string $value) + private function __construct(string $value) { + $this->value = $value; } /** diff --git a/src/Minor.php b/src/Minor.php index 4019724..d5afaa9 100644 --- a/src/Minor.php +++ b/src/Minor.php @@ -20,9 +20,11 @@ final class Minor * @see https://regex101.com/r/Ly7O1x/3/ */ private const REGEX = '/^(?P0|[1-9]\d*)$/'; + private string $value; - private function __construct(private string $value) + private function __construct(string $value) { + $this->value = $value; } /** diff --git a/src/Patch.php b/src/Patch.php index 3c7329f..6664593 100644 --- a/src/Patch.php +++ b/src/Patch.php @@ -20,9 +20,11 @@ final class Patch * @see https://regex101.com/r/Ly7O1x/3/ */ private const REGEX = '/^(?P0|[1-9]\d*)$/'; + private string $value; - private function __construct(private string $value) + private function __construct(string $value) { + $this->value = $value; } /** diff --git a/src/PreRelease.php b/src/PreRelease.php index c3c2bbc..e3806bb 100644 --- a/src/PreRelease.php +++ b/src/PreRelease.php @@ -20,9 +20,11 @@ final class PreRelease * @see https://regex101.com/r/Ly7O1x/3/ */ private const REGEX = '/^(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)$/'; + private string $value; - private function __construct(private string $value) + private function __construct(string $value) { + $this->value = $value; } /** diff --git a/src/Version.php b/src/Version.php index cc82dcb..9dca416 100644 --- a/src/Version.php +++ b/src/Version.php @@ -20,14 +20,24 @@ final class Version * @see https://regex101.com/r/Ly7O1x/3/ */ private const REGEX = '/^(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)\.(?P0|[1-9]\d*)(?:-(?P(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/'; + private Major $major; + private Minor $minor; + private Patch $patch; + private PreRelease $preRelease; + private BuildMetaData $buildMetaData; private function __construct( - private Major $major, - private Minor $minor, - private Patch $patch, - private PreRelease $preRelease, - private BuildMetaData $buildMetaData, + Major $major, + Minor $minor, + Patch $patch, + PreRelease $preRelease, + BuildMetaData $buildMetaData ) { + $this->major = $major; + $this->minor = $minor; + $this->patch = $patch; + $this->preRelease = $preRelease; + $this->buildMetaData = $buildMetaData; } /** diff --git a/test/Unit/MajorTest.php b/test/Unit/MajorTest.php index 0da36f2..eb54384 100644 --- a/test/Unit/MajorTest.php +++ b/test/Unit/MajorTest.php @@ -74,7 +74,7 @@ public function testFromStringReturnsMajor(string $value): void */ public function testBumpReturnsMajorWithIncrementedValue( string $value, - string $bumpedValue, + string $bumpedValue ): void { $one = Major::fromString($value); @@ -89,7 +89,7 @@ public function testBumpReturnsMajorWithIncrementedValue( */ public function testCompareReturnsMinusOneWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Major::fromString($firstValue); $two = Major::fromString($secondValue); @@ -114,7 +114,7 @@ public function testCompareReturnsZeroWhenFirstValueIsIdenticalToSecondValue(int */ public function testCompareReturnsPlusOneWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Major::fromString($firstValue); $two = Major::fromString($secondValue); @@ -139,7 +139,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Major::fromString($firstValue); $two = Major::fromString($secondValue); @@ -152,7 +152,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondVa */ public function testIsSmallerThanReturnsTrueWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Major::fromString($firstValue); $two = Major::fromString($secondValue); @@ -185,7 +185,7 @@ public function testEqualsReturnsFalseWhenValuesAreSame(): void */ public function testIsGreaterThanReturnsFalseWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Major::fromString($firstValue); $two = Major::fromString($secondValue); @@ -210,7 +210,7 @@ public function testIsGreaterThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsGreaterThanReturnsTrueWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Major::fromString($firstValue); $two = Major::fromString($secondValue); diff --git a/test/Unit/MinorTest.php b/test/Unit/MinorTest.php index 08864f0..67f5ce7 100644 --- a/test/Unit/MinorTest.php +++ b/test/Unit/MinorTest.php @@ -74,7 +74,7 @@ public function testFromStringReturnsMinor(string $value): void */ public function testBumpReturnsMinorWithIncrementedValue( string $value, - string $bumpedValue, + string $bumpedValue ): void { $one = Minor::fromString($value); @@ -89,7 +89,7 @@ public function testBumpReturnsMinorWithIncrementedValue( */ public function testCompareReturnsMinusOneWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Minor::fromString($firstValue); $two = Minor::fromString($secondValue); @@ -114,7 +114,7 @@ public function testCompareReturnsZeroWhenFirstValueIsIdenticalToSecondValue(int */ public function testCompareReturnsPlusOneWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Minor::fromString($firstValue); $two = Minor::fromString($secondValue); @@ -139,7 +139,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Minor::fromString($firstValue); $two = Minor::fromString($secondValue); @@ -152,7 +152,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondVa */ public function testIsSmallerThanReturnsTrueWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Minor::fromString($firstValue); $two = Minor::fromString($secondValue); @@ -185,7 +185,7 @@ public function testEqualsReturnsFalseWhenValuesAreSame(): void */ public function testIsGreaterThanReturnsFalseWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Minor::fromString($firstValue); $two = Minor::fromString($secondValue); @@ -210,7 +210,7 @@ public function testIsGreaterThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsGreaterThanReturnsTrueWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Minor::fromString($firstValue); $two = Minor::fromString($secondValue); diff --git a/test/Unit/PatchTest.php b/test/Unit/PatchTest.php index cafc378..d4689cb 100644 --- a/test/Unit/PatchTest.php +++ b/test/Unit/PatchTest.php @@ -74,7 +74,7 @@ public function testFromStringReturnsPatch(string $value): void */ public function testBumpReturnsPatchWithIncrementedValue( string $value, - string $bumpedValue, + string $bumpedValue ): void { $one = Patch::fromString($value); @@ -89,7 +89,7 @@ public function testBumpReturnsPatchWithIncrementedValue( */ public function testCompareReturnsMinusOneWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Patch::fromString($firstValue); $two = Patch::fromString($secondValue); @@ -114,7 +114,7 @@ public function testCompareReturnsZeroWhenFirstValueIsIdenticalToSecondValue(int */ public function testCompareReturnsPlusOneWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Patch::fromString($firstValue); $two = Patch::fromString($secondValue); @@ -139,7 +139,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Patch::fromString($firstValue); $two = Patch::fromString($secondValue); @@ -152,7 +152,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondVa */ public function testIsSmallerThanReturnsTrueWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Patch::fromString($firstValue); $two = Patch::fromString($secondValue); @@ -185,7 +185,7 @@ public function testEqualsReturnsFalseWhenValuesAreSame(): void */ public function testIsGreaterThanReturnsFalseWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Patch::fromString($firstValue); $two = Patch::fromString($secondValue); @@ -210,7 +210,7 @@ public function testIsGreaterThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsGreaterThanReturnsTrueWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Patch::fromString($firstValue); $two = Patch::fromString($secondValue); diff --git a/test/Unit/PreReleaseTest.php b/test/Unit/PreReleaseTest.php index 6c5f79d..a96fd82 100644 --- a/test/Unit/PreReleaseTest.php +++ b/test/Unit/PreReleaseTest.php @@ -59,7 +59,7 @@ public function testEmptyReturnsPreRelease(): void */ public function testCompareReturnsMinusOneWhenFirstValueIsSmallerThanSecondValue( string $value, - string $otherValue, + string $otherValue ): void { $one = PreRelease::fromString($value); $two = PreRelease::fromString($otherValue); @@ -83,7 +83,7 @@ public function testCompareReturnsZeroWhenFirstValueIsIdenticalToSecondValue(str */ public function testCompareReturnsPlusOneWhenFirstValueIsGreaterThanSecondValue( string $value, - string $otherValue, + string $otherValue ): void { $one = PreRelease::fromString($value); $two = PreRelease::fromString($otherValue); @@ -107,7 +107,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondValue( string $value, - string $otherValue, + string $otherValue ): void { $one = PreRelease::fromString($value); $two = PreRelease::fromString($otherValue); @@ -120,7 +120,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondVa */ public function testIsSmallerThanReturnsTrueWhenFirstValueIsSmallerThanSecondValue( string $value, - string $otherValue, + string $otherValue ): void { $one = PreRelease::fromString($value); $two = PreRelease::fromString($otherValue); @@ -153,7 +153,7 @@ public function testEqualsReturnsTrueWhenValueIsSame(): void */ public function testIsGreaterThanReturnsFalseWhenFirstValueIsSmallerThanSecondValue( string $value, - string $otherValue, + string $otherValue ): void { $one = PreRelease::fromString($value); $two = PreRelease::fromString($otherValue); @@ -177,7 +177,7 @@ public function testIsGreaterThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsGreaterThanReturnsTrueWhenFirstValueIsGreaterThanSecondValue( string $value, - string $otherValue, + string $otherValue ): void { $one = PreRelease::fromString($value); $two = PreRelease::fromString($otherValue); diff --git a/test/Unit/VersionTest.php b/test/Unit/VersionTest.php index dda8633..af4b943 100644 --- a/test/Unit/VersionTest.php +++ b/test/Unit/VersionTest.php @@ -66,7 +66,7 @@ public function testFromStringReturnsVersionWithMajorMinorPatchPreReleaseAndBuil Minor $minor, Patch $patch, PreRelease $preRelease, - BuildMetaData $buildMetaData, + BuildMetaData $buildMetaData ): void { $version = Version::fromString($value); @@ -322,7 +322,7 @@ public static function provideValueMajorMinorPatchPreReleaseAndBuildMetaData(): */ public function testBumpMajorReturnsVersionWithBumpedMajor( string $value, - string $valueWithBumpedMajor, + string $valueWithBumpedMajor ): void { $one = Version::fromString($value); @@ -337,7 +337,7 @@ public function testBumpMajorReturnsVersionWithBumpedMajor( */ public function testBumpMinorReturnsVersionWithBumpedMinor( string $value, - string $valueWithBumpedMinor, + string $valueWithBumpedMinor ): void { $one = Version::fromString($value); @@ -352,7 +352,7 @@ public function testBumpMinorReturnsVersionWithBumpedMinor( */ public function testBumpPatchReturnsVersionWithBumpedPatch( string $value, - string $valueWithBumpedPatch, + string $valueWithBumpedPatch ): void { $one = Version::fromString($value); @@ -367,7 +367,7 @@ public function testBumpPatchReturnsVersionWithBumpedPatch( */ public function testCompareReturnsMinusOneWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -391,7 +391,7 @@ public function testCompareReturnsZeroWhenFirstValueIsIdenticalToSecondValue(str */ public function testCompareReturnsZeroWhenFirstValueIsEqualToSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -404,7 +404,7 @@ public function testCompareReturnsZeroWhenFirstValueIsEqualToSecondValue( */ public function testCompareReturnsMinusOneWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -428,7 +428,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsSmallerThanReturnsFalseWhenFirstValueIsEqualToSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -441,7 +441,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsEqualToSecondValue( */ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -454,7 +454,7 @@ public function testIsSmallerThanReturnsFalseWhenFirstValueIsGreaterThanSecondVa */ public function testIsSmallerThanReturnsTrueWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -467,7 +467,7 @@ public function testIsSmallerThanReturnsTrueWhenFirstValueIsSmallerThanSecondVal */ public function testEqualsReturnsFalseWhenValuesAreDifferent( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -480,7 +480,7 @@ public function testEqualsReturnsFalseWhenValuesAreDifferent( */ public function testEqualsReturnsTrueWhenValuesAreEqual( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -504,7 +504,7 @@ public function testEqualsReturnsTrueWhenValuesAreIdentical(string $value): void */ public function testIsGreaterThanReturnsFalseWhenFirstValueIsSmallerThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -528,7 +528,7 @@ public function testIsGreaterThanReturnsFalseWhenFirstValueIsIdenticalToSecondVa */ public function testIsGreaterThanReturnsFalseWhenFirstValueIsEqualToSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue); @@ -541,7 +541,7 @@ public function testIsGreaterThanReturnsFalseWhenFirstValueIsEqualToSecondValue( */ public function testIsGreaterThanReturnsTrueWhenFirstValueIsGreaterThanSecondValue( string $firstValue, - string $secondValue, + string $secondValue ): void { $one = Version::fromString($firstValue); $two = Version::fromString($secondValue);