From d097b24dbc1b574204ba819db068d9a8696359e6 Mon Sep 17 00:00:00 2001 From: Jakob Linskeseder Date: Wed, 12 Apr 2023 00:47:41 +0200 Subject: [PATCH] Support PHP 8.2 Also updated to PHP 8.0 with Rector. --- .github/workflows/ci.yml | 6 +- composer.json | 14 +- composer.lock | 1004 +++++++++++------------ src/Tv.php | 39 +- src/Tv/Channel.php | 20 +- src/Tv/Elements/Audio.php | 14 +- src/Tv/Elements/Category.php | 2 +- src/Tv/Elements/Country.php | 2 +- src/Tv/Elements/Credits.php | 20 +- src/Tv/Elements/Credits/Actor.php | 14 +- src/Tv/Elements/Credits/Adapter.php | 8 +- src/Tv/Elements/Credits/Commentator.php | 8 +- src/Tv/Elements/Credits/Composer.php | 8 +- src/Tv/Elements/Credits/Director.php | 8 +- src/Tv/Elements/Credits/Editor.php | 8 +- src/Tv/Elements/Credits/Guest.php | 8 +- src/Tv/Elements/Credits/Presenter.php | 8 +- src/Tv/Elements/Credits/Producer.php | 8 +- src/Tv/Elements/Credits/Writer.php | 8 +- src/Tv/Elements/Date.php | 8 +- src/Tv/Elements/Desc.php | 2 +- src/Tv/Elements/DisplayName.php | 2 +- src/Tv/Elements/EpisodeNum.php | 15 +- src/Tv/Elements/Icon.php | 20 +- src/Tv/Elements/Keyword.php | 2 +- src/Tv/Elements/Language.php | 14 +- src/Tv/Elements/LastChance.php | 2 +- src/Tv/Elements/Length.php | 15 +- src/Tv/Elements/Premiere.php | 2 +- src/Tv/Elements/PreviouslyShown.php | 14 +- src/Tv/Elements/Rating.php | 19 +- src/Tv/Elements/Review.php | 43 +- src/Tv/Elements/SubTitle.php | 2 +- src/Tv/Elements/Subtitles.php | 13 +- src/Tv/Elements/Title.php | 2 +- src/Tv/Elements/Url.php | 8 +- src/Tv/Elements/Value.php | 8 +- src/Tv/Elements/Video.php | 32 +- src/Tv/LocalizedValue.php | 19 +- src/Tv/Programme.php | 180 +--- src/XmlElement.php | 30 +- src/XmlTv.php | 14 +- 42 files changed, 608 insertions(+), 1065 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e8fcfb..a6fd18a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ jobs: fail-fast: false matrix: operating-system: ['ubuntu-latest'] - php-version: ['7.3', '7.4', '8.0', '8.1'] - composer-version: ['composer:v1', 'composer:v2'] + php-version: ['8.0', '8.1', '8.2'] + composer-version: ['composer:v2'] steps: - name: Checkout @@ -26,7 +26,7 @@ jobs: extensions: mbstring, xdebug - name: Install dependencies - run: composer install --no-progress --no-suggest --prefer-dist + run: composer install --no-progress --prefer-dist - name: Analyse run: composer run analyse diff --git a/composer.json b/composer.json index 66ac409..d03a500 100644 --- a/composer.json +++ b/composer.json @@ -11,16 +11,16 @@ } ], "require": { - "php": ">=7.3", + "php": ">=8.0", "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*" }, "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^6.1", - "friendsofphp/php-cs-fixer": "^3.4", - "phpspec/phpspec": "^7.0", - "phpstan/phpstan": "^1.2" + "friends-of-phpspec/phpspec-code-coverage": "^6.3", + "friendsofphp/php-cs-fixer": "^3.16", + "phpspec/phpspec": "^7.3", + "phpstan/phpstan": "^1.10" }, "autoload": { "psr-4": { @@ -32,11 +32,11 @@ "test-ci": "phpspec run --no-interaction --verbose", "lint": "php-cs-fixer fix src --rules=@PSR12", "lint-ci": "php-cs-fixer fix src --dry-run --rules=@PSR12", - "analyse": "phpstan analyse --level 4 src" + "analyse": "phpstan analyse --level 7 src" }, "config": { "platform": { - "php": "7.3" + "php": "8.0.28" }, "sort-packages": true } diff --git a/composer.lock b/composer.lock index 8dfb0ca..fb720b1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,35 +4,35 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c1a6da08f48e03e9b91c7ba05998295e", + "content-hash": "ed58b994a9b2be4003943d5e8063d460", "packages": [], "packages-dev": [ { "name": "composer/pcre", - "version": "1.0.1", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560" + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/67a32d7d6f9f560b726ab25a061b38ff3a80c560", - "reference": "67a32d7d6f9f560b726ab25a061b38ff3a80c560", + "url": "https://api.github.com/repos/composer/pcre/zipball/4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "phpstan/phpstan": "^1.3", "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5" + "symfony/phpunit-bridge": "^5" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.x-dev" + "dev-main": "3.x-dev" } }, "autoload": { @@ -60,7 +60,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/1.0.1" + "source": "https://github.com/composer/pcre/tree/3.1.0" }, "funding": [ { @@ -76,20 +76,20 @@ "type": "tidelift" } ], - "time": "2022-01-21T20:24:37+00:00" + "time": "2022-11-17T09:50:14+00:00" }, { "name": "composer/semver", - "version": "3.3.0", + "version": "3.3.2", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "f79c90ad4e9b41ac4dfc5d77bf398cf61fbd718b" + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/f79c90ad4e9b41ac4dfc5d77bf398cf61fbd718b", - "reference": "f79c90ad4e9b41ac4dfc5d77bf398cf61fbd718b", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", "shasum": "" }, "require": { @@ -141,7 +141,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.3.0" + "source": "https://github.com/composer/semver/tree/3.3.2" }, "funding": [ { @@ -157,31 +157,31 @@ "type": "tidelift" } ], - "time": "2022-03-15T08:35:57+00:00" + "time": "2022-04-01T19:23:25+00:00" }, { "name": "composer/xdebug-handler", - "version": "2.0.5", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a" + "reference": "ced299686f41dce890debac69273b47ffe98a40c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/9e36aeed4616366d2b690bdce11f71e9178c579a", - "reference": "9e36aeed4616366d2b690bdce11f71e9178c579a", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", + "reference": "ced299686f41dce890debac69273b47ffe98a40c", "shasum": "" }, "require": { - "composer/pcre": "^1", - "php": "^5.3.2 || ^7.0 || ^8.0", + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", "psr/log": "^1 || ^2 || ^3" }, "require-dev": { "phpstan/phpstan": "^1.0", "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" + "symfony/phpunit-bridge": "^6.0" }, "type": "library", "autoload": { @@ -207,7 +207,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/2.0.5" + "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" }, "funding": [ { @@ -223,34 +223,38 @@ "type": "tidelift" } ], - "time": "2022-02-24T20:20:32+00:00" + "time": "2022-02-25T21:32:43+00:00" }, { "name": "doctrine/annotations", - "version": "1.13.2", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08" + "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", + "reference": "e157ef3f3124bbf6fe7ce0ffd109e8a8ef284e7f", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", + "doctrine/lexer": "^2 || ^3", "ext-tokenizer": "*", - "php": "^7.1 || ^8.0", + "php": "^7.2 || ^8.0", "psr/cache": "^1 || ^2 || ^3" }, "require-dev": { - "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^0.12.20", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2" + "doctrine/cache": "^2.0", + "doctrine/coding-standard": "^10", + "phpstan/phpstan": "^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "symfony/cache": "^5.4 || ^6", + "vimeo/psalm": "^4.10" + }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" }, "type": "library", "autoload": { @@ -293,36 +297,79 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.2" + "source": "https://github.com/doctrine/annotations/tree/2.0.1" }, - "time": "2021-08-05T19:00:23+00:00" + "time": "2023-02-02T22:02:53+00:00" + }, + { + "name": "doctrine/deprecations", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5|^8.5|^9.5", + "psr/log": "^1|^2|^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" + }, + "time": "2022-05-02T15:47:09+00:00" }, { "name": "doctrine/instantiator", - "version": "1.4.1", + "version": "1.5.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", - "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b", + "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^9 || ^11", "ext-pdo": "*", "ext-phar": "*", "phpbench/phpbench": "^0.16 || ^1", "phpstan/phpstan": "^1.4", "phpstan/phpstan-phpunit": "^1", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.22" + "vimeo/psalm": "^4.30 || ^5.4" }, "type": "library", "autoload": { @@ -349,7 +396,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.1" + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" }, "funding": [ { @@ -365,35 +412,37 @@ "type": "tidelift" } ], - "time": "2022-03-03T08:28:38+00:00" + "time": "2022-12-30T00:15:36+00:00" }, { "name": "doctrine/lexer", - "version": "1.2.3", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229" + "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/c268e882d4dbdd85e36e4ad69e02dc284f89d229", - "reference": "c268e882d4dbdd85e36e4ad69e02dc284f89d229", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", "shasum": "" }, "require": { + "doctrine/deprecations": "^1.0", "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9.0", + "doctrine/coding-standard": "^9 || ^10", "phpstan/phpstan": "^1.3", "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", - "vimeo/psalm": "^4.11" + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^4.11 || ^5.0" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "Doctrine\\Common\\Lexer\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -425,7 +474,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.3" + "source": "https://github.com/doctrine/lexer/tree/2.1.0" }, "funding": [ { @@ -441,33 +490,33 @@ "type": "tidelift" } ], - "time": "2022-02-28T11:07:21+00:00" + "time": "2022-12-14T08:49:07+00:00" }, { "name": "friends-of-phpspec/phpspec-code-coverage", - "version": "v6.1.0", + "version": "v6.3.0", "source": { "type": "git", "url": "https://github.com/friends-of-phpspec/phpspec-code-coverage.git", - "reference": "cb6177eb8ce45cdde990ff3e6db3b44fbbb17364" + "reference": "0b878460e7b0ef4bf8e3cb2ee2bd7d3f8202b12d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/friends-of-phpspec/phpspec-code-coverage/zipball/cb6177eb8ce45cdde990ff3e6db3b44fbbb17364", - "reference": "cb6177eb8ce45cdde990ff3e6db3b44fbbb17364", + "url": "https://api.github.com/repos/friends-of-phpspec/phpspec-code-coverage/zipball/0b878460e7b0ef4bf8e3cb2ee2bd7d3f8202b12d", + "reference": "0b878460e7b0ef4bf8e3cb2ee2bd7d3f8202b12d", "shasum": "" }, "require": { "php": ">= 7.3", "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/php-code-coverage": "^9.0" + "phpunit/php-code-coverage": "^9.2 || ^10.0" }, "conflict": { "sebastian/comparator": "< 2.0" }, "require-dev": { - "drupol/php-conventions": "^3.0", - "vimeo/psalm": "^4.7" + "friendsofphp/php-cs-fixer": "^3.4", + "phpstan/phpstan": "^1.5" }, "suggest": { "ext-pcov": "Install PCov extension to generate code coverage.", @@ -531,56 +580,57 @@ "issues": "https://github.com/friends-of-phpspec/phpspec-code-coverage/issues", "source": "https://github.com/friends-of-phpspec/phpspec-code-coverage" }, - "time": "2021-03-30T20:51:42+00:00" + "time": "2023-02-22T15:46:57+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.4.0", + "version": "v3.16.0", "source": { "type": "git", - "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "47177af1cfb9dab5d1cc4daf91b7179c2efe7fad" + "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", + "reference": "d40f9436e1c448d309fa995ab9c14c5c7a96f2dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/47177af1cfb9dab5d1cc4daf91b7179c2efe7fad", - "reference": "47177af1cfb9dab5d1cc4daf91b7179c2efe7fad", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d40f9436e1c448d309fa995ab9c14c5c7a96f2dc", + "reference": "d40f9436e1c448d309fa995ab9c14c5c7a96f2dc", "shasum": "" }, "require": { - "composer/semver": "^3.2", - "composer/xdebug-handler": "^2.0", - "doctrine/annotations": "^1.12", + "composer/semver": "^3.3", + "composer/xdebug-handler": "^3.0.3", + "doctrine/annotations": "^2", + "doctrine/lexer": "^2 || ^3", "ext-json": "*", "ext-tokenizer": "*", - "php": "^7.2.5 || ^8.0", - "php-cs-fixer/diff": "^2.0", - "symfony/console": "^4.4.20 || ^5.1.3 || ^6.0", - "symfony/event-dispatcher": "^4.4.20 || ^5.0 || ^6.0", - "symfony/filesystem": "^4.4.20 || ^5.0 || ^6.0", - "symfony/finder": "^4.4.20 || ^5.0 || ^6.0", - "symfony/options-resolver": "^4.4.20 || ^5.0 || ^6.0", - "symfony/polyfill-mbstring": "^1.23", - "symfony/polyfill-php80": "^1.23", - "symfony/polyfill-php81": "^1.23", - "symfony/process": "^4.4.20 || ^5.0 || ^6.0", - "symfony/stopwatch": "^4.4.20 || ^5.0 || ^6.0" + "php": "^7.4 || ^8.0", + "sebastian/diff": "^4.0 || ^5.0", + "symfony/console": "^5.4 || ^6.0", + "symfony/event-dispatcher": "^5.4 || ^6.0", + "symfony/filesystem": "^5.4 || ^6.0", + "symfony/finder": "^5.4 || ^6.0", + "symfony/options-resolver": "^5.4 || ^6.0", + "symfony/polyfill-mbstring": "^1.27", + "symfony/polyfill-php80": "^1.27", + "symfony/polyfill-php81": "^1.27", + "symfony/process": "^5.4 || ^6.0", + "symfony/stopwatch": "^5.4 || ^6.0" }, "require-dev": { "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^1.5", - "mikey179/vfsstream": "^1.6.8", - "php-coveralls/php-coveralls": "^2.5.2", + "keradus/cli-executor": "^2.0", + "mikey179/vfsstream": "^1.6.11", + "php-coveralls/php-coveralls": "^2.5.3", "php-cs-fixer/accessible-object": "^1.1", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1", - "phpspec/prophecy": "^1.15", - "phpspec/prophecy-phpunit": "^1.1 || ^2.0", - "phpunit/phpunit": "^8.5.21 || ^9.5", - "phpunitgoodpractices/polyfill": "^1.5", - "phpunitgoodpractices/traits": "^1.9.1", - "symfony/phpunit-bridge": "^5.2.4 || ^6.0", - "symfony/yaml": "^4.4.20 || ^5.0 || ^6.0" + "phpspec/prophecy": "^1.16", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "phpunitgoodpractices/polyfill": "^1.6", + "phpunitgoodpractices/traits": "^1.9.2", + "symfony/phpunit-bridge": "^6.2.3", + "symfony/yaml": "^5.4 || ^6.0" }, "suggest": { "ext-dom": "For handling output formats in XML", @@ -610,9 +660,15 @@ } ], "description": "A tool to automatically fix PHP code style", + "keywords": [ + "Static code analysis", + "fixer", + "standards", + "static analysis" + ], "support": { - "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.4.0" + "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.16.0" }, "funding": [ { @@ -620,20 +676,20 @@ "type": "github" } ], - "time": "2021-12-11T16:25:08+00:00" + "time": "2023-04-02T19:30:06+00:00" }, { "name": "nikic/php-parser", - "version": "v4.13.2", + "version": "v4.15.4", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "210577fe3cf7badcc5814d99455df46564f3c077" + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", - "reference": "210577fe3cf7badcc5814d99455df46564f3c077", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290", "shasum": "" }, "require": { @@ -674,61 +730,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" - }, - "time": "2021-11-30T19:35:32+00:00" - }, - { - "name": "php-cs-fixer/diff", - "version": "v2.0.2", - "source": { - "type": "git", - "url": "https://github.com/PHP-CS-Fixer/diff.git", - "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/diff/zipball/29dc0d507e838c4580d018bd8b5cb412474f7ec3", - "reference": "29dc0d507e838c4580d018bd8b5cb412474f7ec3", - "shasum": "" - }, - "require": { - "php": "^5.6 || ^7.0 || ^8.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4" }, - "require-dev": { - "phpunit/phpunit": "^5.7.23 || ^6.4.3 || ^7.0", - "symfony/process": "^3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - } - ], - "description": "sebastian/diff v3 backport support for PHP 5.6+", - "homepage": "https://github.com/PHP-CS-Fixer", - "keywords": [ - "diff" - ], - "support": { - "issues": "https://github.com/PHP-CS-Fixer/diff/issues", - "source": "https://github.com/PHP-CS-Fixer/diff/tree/v2.0.2" - }, - "time": "2020-10-14T08:32:19+00:00" + "time": "2023-03-05T19:49:14+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -842,25 +846,33 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.0", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706" + "reference": "dfc078e8af9c99210337325ff5aa152872c98714" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/93ebd0014cab80c4ea9f5e297ea48672f1b87706", - "reference": "93ebd0014cab80c4ea9f5e297ea48672f1b87706", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dfc078e8af9c99210337325ff5aa152872c98714", + "reference": "dfc078e8af9c99210337325ff5aa152872c98714", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" + "doctrine/deprecations": "^1.0", + "php": "^7.4 || ^8.0", + "phpdocumentor/reflection-common": "^2.0", + "phpstan/phpdoc-parser": "^1.13" }, "require-dev": { "ext-tokenizer": "*", - "psalm/phar": "^4.8" + "phpbench/phpbench": "^1.2", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^9.5", + "rector/rector": "^0.13.9", + "vimeo/psalm": "^4.25" }, "type": "library", "extra": { @@ -886,9 +898,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.1" }, - "time": "2022-01-04T19:58:01+00:00" + "time": "2023-03-27T19:02:04+00:00" }, { "name": "phpspec/php-diff", @@ -933,22 +945,22 @@ }, { "name": "phpspec/phpspec", - "version": "7.2.0", + "version": "7.3.0", "source": { "type": "git", "url": "https://github.com/phpspec/phpspec.git", - "reference": "bbeb10f73c02bfa11d92159ad9d3e75abc3faa69" + "reference": "7e44b188e8e01f9c9a8ca6cb0d7aceaabcea2133" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/phpspec/zipball/bbeb10f73c02bfa11d92159ad9d3e75abc3faa69", - "reference": "bbeb10f73c02bfa11d92159ad9d3e75abc3faa69", + "url": "https://api.github.com/repos/phpspec/phpspec/zipball/7e44b188e8e01f9c9a8ca6cb0d7aceaabcea2133", + "reference": "7e44b188e8e01f9c9a8ca6cb0d7aceaabcea2133", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.5", "ext-tokenizer": "*", - "php": "^7.3 || 8.0.* || 8.1.*", + "php": "^7.3 || 8.0.* || 8.1.* || 8.2.*", "phpspec/php-diff": "^1.0.0", "phpspec/prophecy": "^1.9", "sebastian/exporter": "^3.0 || ^4.0", @@ -976,7 +988,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "7.2.x-dev" + "dev-main": "7.3.x-dev" } }, "autoload": { @@ -1016,33 +1028,34 @@ ], "support": { "issues": "https://github.com/phpspec/phpspec/issues", - "source": "https://github.com/phpspec/phpspec/tree/7.2.0" + "source": "https://github.com/phpspec/phpspec/tree/7.3.0" }, - "time": "2022-03-14T09:04:31+00:00" + "time": "2022-12-14T16:15:59+00:00" }, { "name": "phpspec/prophecy", - "version": "v1.15.0", + "version": "v1.17.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" + "reference": "15873c65b207b07765dbc3c95d20fdf4a320cbe2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/15873c65b207b07765dbc3c95d20fdf4a320cbe2", + "reference": "15873c65b207b07765dbc3c95d20fdf4a320cbe2", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", + "doctrine/instantiator": "^1.2 || ^2.0", + "php": "^7.2 || 8.0.* || 8.1.* || 8.2.*", "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { "phpspec/phpspec": "^6.0 || ^7.0", + "phpstan/phpstan": "^1.9", "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", @@ -1083,26 +1096,71 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" + "source": "https://github.com/phpspec/prophecy/tree/v1.17.0" + }, + "time": "2023-02-02T15:41:36+00:00" + }, + { + "name": "phpstan/phpdoc-parser", + "version": "1.18.1", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "22dcdfd725ddf99583bfe398fc624ad6c5004a0f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/22dcdfd725ddf99583bfe398fc624ad6c5004a0f", + "reference": "22dcdfd725ddf99583bfe398fc624ad6c5004a0f", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.1", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/phpunit": "^9.5", + "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/1.18.1" }, - "time": "2021-12-08T12:19:24+00:00" + "time": "2023-04-07T11:51:11+00:00" }, { "name": "phpstan/phpstan", - "version": "1.4.10", + "version": "1.10.11", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "898c479c39caa727bedf4311dd294a8f4e250e72" + "reference": "8aa62e6ea8b58ffb650e02940e55a788cbc3fe21" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/898c479c39caa727bedf4311dd294a8f4e250e72", - "reference": "898c479c39caa727bedf4311dd294a8f4e250e72", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8aa62e6ea8b58ffb650e02940e55a788cbc3fe21", + "reference": "8aa62e6ea8b58ffb650e02940e55a788cbc3fe21", "shasum": "" }, "require": { - "php": "^7.1|^8.0" + "php": "^7.2|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -1122,9 +1180,16 @@ "MIT" ], "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.4.10" + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" }, "funding": [ { @@ -1135,36 +1200,32 @@ "url": "https://github.com/phpstan", "type": "github" }, - { - "url": "https://www.patreon.com/phpstan", - "type": "patreon" - }, { "url": "https://tidelift.com/funding/github/packagist/phpstan/phpstan", "type": "tidelift" } ], - "time": "2022-03-14T10:25:45+00:00" + "time": "2023-04-04T19:17:42+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "9.2.26", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/443bc6912c9bd5b409254a40f4b0f4ced7c80ea1", + "reference": "443bc6912c9bd5b409254a40f4b0f4ced7c80ea1", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.15", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -1179,8 +1240,8 @@ "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-pcov": "*", - "ext-xdebug": "*" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { @@ -1213,7 +1274,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.26" }, "funding": [ { @@ -1221,7 +1282,7 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2023-03-06T12:58:08+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1344,20 +1405,20 @@ }, { "name": "psr/cache", - "version": "1.0.1", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/cache.git", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", - "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "url": "https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", + "reference": "aa5030cfa5405eccfdcb1083ce040c2cb8d253bf", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { @@ -1377,7 +1438,7 @@ "authors": [ { "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "homepage": "https://www.php-fig.org/" } ], "description": "Common interface for caching libraries", @@ -1387,28 +1448,33 @@ "psr-6" ], "support": { - "source": "https://github.com/php-fig/cache/tree/master" + "source": "https://github.com/php-fig/cache/tree/3.0.0" }, - "time": "2016-08-06T20:24:11+00:00" + "time": "2021-02-03T23:26:27+00:00" }, { "name": "psr/container", - "version": "1.1.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -1435,9 +1501,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:47:00+00:00" }, { "name": "psr/event-dispatcher", @@ -1491,30 +1557,30 @@ }, { "name": "psr/log", - "version": "1.1.4", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "3.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1535,9 +1601,9 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" + "source": "https://github.com/php-fig/log/tree/3.0.0" }, - "time": "2021-05-03T11:20:27+00:00" + "time": "2021-07-14T16:46:02+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -1596,16 +1662,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.6", + "version": "4.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", "shasum": "" }, "require": { @@ -1658,7 +1724,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" }, "funding": [ { @@ -1666,7 +1732,7 @@ "type": "github" } ], - "time": "2020-10-26T15:49:45+00:00" + "time": "2022-09-14T12:41:17+00:00" }, { "name": "sebastian/complexity", @@ -1793,16 +1859,16 @@ }, { "name": "sebastian/environment", - "version": "5.1.3", + "version": "5.1.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac" + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", + "reference": "830c43a844f1f8d5b7a1f6d6076b784454d8b7ed", "shasum": "" }, "require": { @@ -1844,7 +1910,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" }, "funding": [ { @@ -1852,20 +1918,20 @@ "type": "github" } ], - "time": "2020-09-28T05:52:38+00:00" + "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", "shasum": "" }, "require": { @@ -1921,7 +1987,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" }, "funding": [ { @@ -1929,7 +1995,7 @@ "type": "github" } ], - "time": "2021-11-11T14:18:36+00:00" + "time": "2022-09-14T06:03:37+00:00" }, { "name": "sebastian/lines-of-code", @@ -1990,16 +2056,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", - "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", "shasum": "" }, "require": { @@ -2038,10 +2104,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" }, "funding": [ { @@ -2049,7 +2115,7 @@ "type": "github" } ], - "time": "2020-10-26T13:17:30+00:00" + "time": "2023-02-03T06:07:39+00:00" }, { "name": "sebastian/version", @@ -2106,46 +2172,42 @@ }, { "name": "symfony/console", - "version": "v5.4.5", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "d8111acc99876953f52fe16d4c50eb60940d49ad" + "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/d8111acc99876953f52fe16d4c50eb60940d49ad", - "reference": "d8111acc99876953f52fe16d4c50eb60940d49ad", + "url": "https://api.github.com/repos/symfony/console/zipball/c3ebc83d031b71c39da318ca8b7a07ecc67507ed", + "reference": "c3ebc83d031b71c39da318ca8b7a07ecc67507ed", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", + "php": ">=8.0.2", "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.1|^6.0" + "symfony/string": "^5.4|^6.0" }, "conflict": { - "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" + "symfony/dependency-injection": "<5.4", + "symfony/dotenv": "<5.4", + "symfony/event-dispatcher": "<5.4", + "symfony/lock": "<5.4", + "symfony/process": "<5.4" }, "provide": { - "psr/log-implementation": "1.0|2.0" + "psr/log-implementation": "1.0|2.0|3.0" }, "require-dev": { - "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" + "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" }, "suggest": { "psr/log": "For using the console logger", @@ -2185,7 +2247,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.5" + "source": "https://github.com/symfony/console/tree/v6.0.19" }, "funding": [ { @@ -2201,29 +2263,29 @@ "type": "tidelift" } ], - "time": "2022-02-24T12:45:35+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", - "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", + "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -2252,7 +2314,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.2" }, "funding": [ { @@ -2268,44 +2330,42 @@ "type": "tidelift" } ], - "time": "2021-07-12T14:48:14+00:00" + "time": "2022-01-02T09:55:41+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.4.3", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "dec8a9f58d20df252b9cd89f1c6c1530f747685d" + "reference": "2eaf8e63bc5b8cefabd4a800157f0d0c094f677a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/dec8a9f58d20df252b9cd89f1c6c1530f747685d", - "reference": "dec8a9f58d20df252b9cd89f1c6c1530f747685d", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2eaf8e63bc5b8cefabd4a800157f0d0c094f677a", + "reference": "2eaf8e63bc5b8cefabd4a800157f0d0c094f677a", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/event-dispatcher-contracts": "^2|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.0.2", + "symfony/event-dispatcher-contracts": "^2|^3" }, "conflict": { - "symfony/dependency-injection": "<4.4" + "symfony/dependency-injection": "<5.4" }, "provide": { "psr/event-dispatcher-implementation": "1.0", - "symfony/event-dispatcher-implementation": "2.0" + "symfony/event-dispatcher-implementation": "2.0|3.0" }, "require-dev": { "psr/log": "^1|^2|^3", - "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/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/service-contracts": "^1.1|^2|^3", - "symfony/stopwatch": "^4.4|^5.0|^6.0" + "symfony/stopwatch": "^5.4|^6.0" }, "suggest": { "symfony/dependency-injection": "", @@ -2337,7 +2397,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/v5.4.3" + "source": "https://github.com/symfony/event-dispatcher/tree/v6.0.19" }, "funding": [ { @@ -2353,24 +2413,24 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v2.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "66bea3b09be61613cd3b4043a65a8ec48cfa6d2a" + "reference": "7bc61cc2db649b4637d331240c5346dcc7708051" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/66bea3b09be61613cd3b4043a65a8ec48cfa6d2a", - "reference": "66bea3b09be61613cd3b4043a65a8ec48cfa6d2a", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051", + "reference": "7bc61cc2db649b4637d331240c5346dcc7708051", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "psr/event-dispatcher": "^1" }, "suggest": { @@ -2379,7 +2439,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -2416,7 +2476,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.2" }, "funding": [ { @@ -2432,27 +2492,26 @@ "type": "tidelift" } ], - "time": "2021-07-12T14:48:14+00:00" + "time": "2022-01-02T09:55:41+00:00" }, { "name": "symfony/filesystem", - "version": "v5.4.6", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "d53a45039974952af7f7ebc461ccdd4295e29440" + "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/d53a45039974952af7f7ebc461ccdd4295e29440", - "reference": "d53a45039974952af7f7ebc461ccdd4295e29440", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/3d49eec03fda1f0fc19b7349fbbe55ebc1004214", + "reference": "3d49eec03fda1f0fc19b7349fbbe55ebc1004214", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-mbstring": "~1.8", - "symfony/polyfill-php80": "^1.16" + "symfony/polyfill-mbstring": "~1.8" }, "type": "library", "autoload": { @@ -2480,7 +2539,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v5.4.6" + "source": "https://github.com/symfony/filesystem/tree/v6.0.19" }, "funding": [ { @@ -2496,26 +2555,24 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:42:23+00:00" + "time": "2023-01-20T17:44:14+00:00" }, { "name": "symfony/finder", - "version": "v5.4.3", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d" + "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/231313534dded84c7ecaa79d14bc5da4ccb69b7d", - "reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d", + "url": "https://api.github.com/repos/symfony/finder/zipball/5cc9cac6586fc0c28cd173780ca696e419fefa11", + "reference": "5cc9cac6586fc0c28cd173780ca696e419fefa11", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.0.2" }, "type": "library", "autoload": { @@ -2543,7 +2600,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.3" + "source": "https://github.com/symfony/finder/tree/v6.0.19" }, "funding": [ { @@ -2559,27 +2616,25 @@ "type": "tidelift" } ], - "time": "2022-01-26T16:34:36+00:00" + "time": "2023-01-20T17:44:14+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.4.3", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "cc1147cb11af1b43f503ac18f31aa3bec213aba8" + "reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/cc1147cb11af1b43f503ac18f31aa3bec213aba8", - "reference": "cc1147cb11af1b43f503ac18f31aa3bec213aba8", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/6a180d1c45e0d9797470ca9eb46215692de00fa3", + "reference": "6a180d1c45e0d9797470ca9eb46215692de00fa3", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.0.2", + "symfony/deprecation-contracts": "^2.1|^3" }, "type": "library", "autoload": { @@ -2612,7 +2667,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.4.3" + "source": "https://github.com/symfony/options-resolver/tree/v6.0.19" }, "funding": [ { @@ -2628,20 +2683,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "30885182c981ab175d4d034db0f6f469898070ab" + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", - "reference": "30885182c981ab175d4d034db0f6f469898070ab", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", "shasum": "" }, "require": { @@ -2656,7 +2711,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2694,7 +2749,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" }, "funding": [ { @@ -2710,20 +2765,20 @@ "type": "tidelift" } ], - "time": "2021-10-20T20:35:02+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "81b86b50cf841a64252b439e738e97f4a34e2783" + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/81b86b50cf841a64252b439e738e97f4a34e2783", - "reference": "81b86b50cf841a64252b439e738e97f4a34e2783", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", "shasum": "" }, "require": { @@ -2735,7 +2790,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2775,7 +2830,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" }, "funding": [ { @@ -2791,20 +2846,20 @@ "type": "tidelift" } ], - "time": "2021-11-23T21:10:46+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8" + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", "shasum": "" }, "require": { @@ -2816,7 +2871,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2859,7 +2914,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" }, "funding": [ { @@ -2875,20 +2930,20 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", - "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", "shasum": "" }, "require": { @@ -2903,7 +2958,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2942,86 +2997,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.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": "2021-11-30T18:21:41+00:00" - }, - { - "name": "symfony/polyfill-php73", - "version": "v1.25.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/cc5db0e22b3cb4111010e48785a97f670b350ca5", - "reference": "cc5db0e22b3cb4111010e48785a97f670b350ca5", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "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.25.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" }, "funding": [ { @@ -3037,20 +3013,20 @@ "type": "tidelift" } ], - "time": "2021-06-05T21:20:04+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", - "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", "shasum": "" }, "require": { @@ -3059,7 +3035,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3104,7 +3080,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" }, "funding": [ { @@ -3120,20 +3096,20 @@ "type": "tidelift" } ], - "time": "2022-03-04T08:16:47+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.25.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f" + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", - "reference": "5de4ba2d41b15f9bd0e19b2ab9674135813ec98f", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/707403074c8ea6e2edaf8794b0157a0bfa52157a", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a", "shasum": "" }, "require": { @@ -3142,7 +3118,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -3183,7 +3159,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.25.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.27.0" }, "funding": [ { @@ -3199,25 +3175,24 @@ "type": "tidelift" } ], - "time": "2021-09-13T13:58:11+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/process", - "version": "v5.4.5", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "95440409896f90a5f85db07a32b517ecec17fa4c" + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/95440409896f90a5f85db07a32b517ecec17fa4c", - "reference": "95440409896f90a5f85db07a32b517ecec17fa4c", + "url": "https://api.github.com/repos/symfony/process/zipball/2114fd60f26a296cc403a7939ab91478475a33d4", + "reference": "2114fd60f26a296cc403a7939ab91478475a33d4", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.0.2" }, "type": "library", "autoload": { @@ -3245,7 +3220,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.5" + "source": "https://github.com/symfony/process/tree/v6.0.19" }, "funding": [ { @@ -3261,26 +3236,25 @@ "type": "tidelift" } ], - "time": "2022-01-30T18:16:22+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.5.0", + "version": "v3.0.2", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc" + "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", - "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d78d39c1599bd1188b8e26bb341da52c3c6d8a66", + "reference": "d78d39c1599bd1188b8e26bb341da52c3c6d8a66", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1", - "symfony/deprecation-contracts": "^2.1" + "php": ">=8.0.2", + "psr/container": "^2.0" }, "conflict": { "ext-psr": "<1.1|>=2" @@ -3291,7 +3265,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.5-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -3328,7 +3302,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.0.2" }, "funding": [ { @@ -3344,24 +3318,24 @@ "type": "tidelift" } ], - "time": "2021-11-04T16:48:04+00:00" + "time": "2022-05-30T19:17:58+00:00" }, { "name": "symfony/stopwatch", - "version": "v5.4.5", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "4d04b5c24f3c9a1a168a131f6cbe297155bc0d30" + "reference": "011e781839dd1d2eb8119f65ac516a530f60226d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/4d04b5c24f3c9a1a168a131f6cbe297155bc0d30", - "reference": "4d04b5c24f3c9a1a168a131f6cbe297155bc0d30", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/011e781839dd1d2eb8119f65ac516a530f60226d", + "reference": "011e781839dd1d2eb8119f65ac516a530f60226d", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "symfony/service-contracts": "^1|^2|^3" }, "type": "library", @@ -3390,7 +3364,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v5.4.5" + "source": "https://github.com/symfony/stopwatch/tree/v6.0.19" }, "funding": [ { @@ -3406,38 +3380,37 @@ "type": "tidelift" } ], - "time": "2022-02-18T16:06:09+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/string", - "version": "v5.4.3", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "92043b7d8383e48104e411bc9434b260dbeb5a10" + "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/92043b7d8383e48104e411bc9434b260dbeb5a10", - "reference": "92043b7d8383e48104e411bc9434b260dbeb5a10", + "url": "https://api.github.com/repos/symfony/string/zipball/d9e72497367c23e08bf94176d2be45b00a9d232a", + "reference": "d9e72497367c23e08bf94176d2be45b00a9d232a", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" + "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/translation-contracts": ">=3.0" + "symfony/translation-contracts": "<2.0" }, "require-dev": { - "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" + "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" }, "type": "library", "autoload": { @@ -3476,7 +3449,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.4.3" + "source": "https://github.com/symfony/string/tree/v6.0.19" }, "funding": [ { @@ -3492,32 +3465,31 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:53:40+00:00" + "time": "2023-01-01T08:36:10+00:00" }, { "name": "symfony/yaml", - "version": "v5.4.3", + "version": "v6.0.19", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2" + "reference": "deec3a812a0305a50db8ae689b183f43d915c884" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/e80f87d2c9495966768310fc531b487ce64237a2", - "reference": "e80f87d2c9495966768310fc531b487ce64237a2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/deec3a812a0305a50db8ae689b183f43d915c884", + "reference": "deec3a812a0305a50db8ae689b183f43d915c884", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", + "php": ">=8.0.2", "symfony/polyfill-ctype": "^1.8" }, "conflict": { - "symfony/console": "<5.3" + "symfony/console": "<5.4" }, "require-dev": { - "symfony/console": "^5.3|^6.0" + "symfony/console": "^5.4|^6.0" }, "suggest": { "symfony/console": "For validating YAML files using the lint command" @@ -3551,7 +3523,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v5.4.3" + "source": "https://github.com/symfony/yaml/tree/v6.0.19" }, "funding": [ { @@ -3567,7 +3539,7 @@ "type": "tidelift" } ], - "time": "2022-01-26T16:32:32+00:00" + "time": "2023-01-11T11:50:03+00:00" }, { "name": "theseer/tokenizer", @@ -3621,21 +3593,21 @@ }, { "name": "webmozart/assert", - "version": "1.10.0", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "symfony/polyfill-ctype": "^1.8" + "ext-ctype": "*", + "php": "^7.2 || ^8.0" }, "conflict": { "phpstan/phpstan": "<0.12.20", @@ -3673,9 +3645,9 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.10.0" + "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, - "time": "2021-03-09T10:59:23+00:00" + "time": "2022-06-03T18:03:27+00:00" } ], "aliases": [], @@ -3684,14 +3656,14 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.3", + "php": ">=8.0", "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*" }, "platform-dev": [], "platform-overrides": { - "php": "7.3" + "php": "8.0.28" }, - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } diff --git a/src/Tv.php b/src/Tv.php index bb5e959..f82bc70 100644 --- a/src/Tv.php +++ b/src/Tv.php @@ -12,50 +12,27 @@ class Tv implements XmlSerializable public const DATE_FORMAT = 'YmdHis O'; - /** - * @var string - */ - public $date; - - /** - * @var string - */ - public $sourceInfoUrl; - - /** - * @var string - */ - public $sourceInfoName; - - /** - * @var string - */ - public $sourceDataUrl; - /** * @var Channel[] */ - private $channel = []; + private array $channel = []; /** * @var Programme[] */ - private $programme = []; + private array $programme = []; /** * Tv constructor. * * @param string $date Should be the date when the listings were originally produced. - * @param string $sourceInfoUrl - * @param string $sourceInfoName - * @param string $sourceDataUrl */ - public function __construct(string $date = '', string $sourceInfoUrl = '', string $sourceInfoName = '', string $sourceDataUrl = '') - { - $this->date = $date; - $this->sourceInfoUrl = $sourceInfoUrl; - $this->sourceInfoName = $sourceInfoName; - $this->sourceDataUrl = $sourceDataUrl; + public function __construct( + public string $date = '', + public string $sourceInfoUrl = '', + public string $sourceInfoName = '', + public string $sourceDataUrl = '' + ) { } public function addChannel(Channel $channel): void diff --git a/src/Tv/Channel.php b/src/Tv/Channel.php index 71b1cf9..00e0fd6 100644 --- a/src/Tv/Channel.php +++ b/src/Tv/Channel.php @@ -10,35 +10,27 @@ class Channel implements XmlSerializable { - /** - * @var string - */ - public $id; - /** * @var DisplayName[] */ - private $displayName = []; + private array $displayName = []; /** * @var Icon[] */ - private $icon = []; + private array $icon = []; /** * @var Url[] */ - private $url = []; + private array $url = []; - public function __construct(string $id) + public function __construct(public string $id) { - $this->id = $id; } /** * Add a display name. - * - * @param DisplayName $displayName */ public function addDisplayName(DisplayName $displayName): void { @@ -57,8 +49,6 @@ public function getDisplayName(): array /** * Add an icon. - * - * @param Icon $icon */ public function addIcon(Icon $icon): void { @@ -67,8 +57,6 @@ public function addIcon(Icon $icon): void /** * Add a url. - * - * @param Url $url */ public function addUrl(Url $url): void { diff --git a/src/Tv/Elements/Audio.php b/src/Tv/Elements/Audio.php index 4cce6e2..29fabd1 100644 --- a/src/Tv/Elements/Audio.php +++ b/src/Tv/Elements/Audio.php @@ -7,16 +7,6 @@ class Audio implements XmlSerializable { - /** - * @var string - */ - public $present; - - /** - * @var string - */ - public $stereo; - /** * Audio constructor. * @@ -24,10 +14,8 @@ class Audio implements XmlSerializable * @param string $stereo Description of the stereo-ness of the sound. * Legal values are `mono`, `stereo`, `dolby`, `dolby digital`, `bilingual` and `surround`. */ - public function __construct(string $present = '', string $stereo = '') + public function __construct(public string $present = '', public string $stereo = '') { - $this->present = $present; - $this->stereo = $stereo; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Category.php b/src/Tv/Elements/Category.php index fa77fae..0775df9 100644 --- a/src/Tv/Elements/Category.php +++ b/src/Tv/Elements/Category.php @@ -6,5 +6,5 @@ class Category extends LocalizedValue { - protected $name = 'category'; + protected string $name = 'category'; } diff --git a/src/Tv/Elements/Country.php b/src/Tv/Elements/Country.php index 455c445..d4c6ef5 100644 --- a/src/Tv/Elements/Country.php +++ b/src/Tv/Elements/Country.php @@ -6,5 +6,5 @@ class Country extends LocalizedValue { - protected $name = 'country'; + protected string $name = 'country'; } diff --git a/src/Tv/Elements/Credits.php b/src/Tv/Elements/Credits.php index fa64117..00259b7 100644 --- a/src/Tv/Elements/Credits.php +++ b/src/Tv/Elements/Credits.php @@ -20,52 +20,52 @@ class Credits implements XmlSerializable /** * @var Director[] */ - public $director = []; + public array $director = []; /** * @var Actor[] */ - public $actor = []; + public array $actor = []; /** * @var Writer[] */ - public $writer = []; + public array $writer = []; /** * @var Adapter[] */ - public $adapter = []; + public array $adapter = []; /** * @var Producer[] */ - public $producer = []; + public array $producer = []; /** * @var Composer[] */ - public $composer = []; + public array $composer = []; /** * @var Editor[] */ - public $editor = []; + public array $editor = []; /** * @var Presenter[] */ - public $presenter = []; + public array $presenter = []; /** * @var Commentator[] */ - public $commentator = []; + public array $commentator = []; /** * @var Guest[] */ - public $guest = []; + public array $guest = []; public function xmlSerialize(): XmlElement { diff --git a/src/Tv/Elements/Credits/Actor.php b/src/Tv/Elements/Credits/Actor.php index dd2bc7d..0c2ff14 100644 --- a/src/Tv/Elements/Credits/Actor.php +++ b/src/Tv/Elements/Credits/Actor.php @@ -7,20 +7,8 @@ class Actor implements XmlSerializable { - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $role; - - public function __construct(string $value, string $role = '') + public function __construct(public string $value, public string $role = '') { - $this->value = $value; - $this->role = $role; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Adapter.php b/src/Tv/Elements/Credits/Adapter.php index 49ee3ab..76fc641 100644 --- a/src/Tv/Elements/Credits/Adapter.php +++ b/src/Tv/Elements/Credits/Adapter.php @@ -7,14 +7,8 @@ class Adapter implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Commentator.php b/src/Tv/Elements/Credits/Commentator.php index 25f6eef..6080bcb 100644 --- a/src/Tv/Elements/Credits/Commentator.php +++ b/src/Tv/Elements/Credits/Commentator.php @@ -7,14 +7,8 @@ class Commentator implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Composer.php b/src/Tv/Elements/Credits/Composer.php index 7d63f0d..3b7bf36 100644 --- a/src/Tv/Elements/Credits/Composer.php +++ b/src/Tv/Elements/Credits/Composer.php @@ -7,14 +7,8 @@ class Composer implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Director.php b/src/Tv/Elements/Credits/Director.php index c43d00f..e189a3e 100644 --- a/src/Tv/Elements/Credits/Director.php +++ b/src/Tv/Elements/Credits/Director.php @@ -7,14 +7,8 @@ class Director implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Editor.php b/src/Tv/Elements/Credits/Editor.php index d9bfaa4..2edcd21 100644 --- a/src/Tv/Elements/Credits/Editor.php +++ b/src/Tv/Elements/Credits/Editor.php @@ -7,14 +7,8 @@ class Editor implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Guest.php b/src/Tv/Elements/Credits/Guest.php index 6ba2b23..5f5cf4c 100644 --- a/src/Tv/Elements/Credits/Guest.php +++ b/src/Tv/Elements/Credits/Guest.php @@ -7,14 +7,8 @@ class Guest implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Presenter.php b/src/Tv/Elements/Credits/Presenter.php index 6583389..bc2ff7e 100644 --- a/src/Tv/Elements/Credits/Presenter.php +++ b/src/Tv/Elements/Credits/Presenter.php @@ -7,14 +7,8 @@ class Presenter implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Producer.php b/src/Tv/Elements/Credits/Producer.php index c633e10..6504ce7 100644 --- a/src/Tv/Elements/Credits/Producer.php +++ b/src/Tv/Elements/Credits/Producer.php @@ -7,14 +7,8 @@ class Producer implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Credits/Writer.php b/src/Tv/Elements/Credits/Writer.php index 84e71ba..c3e404a 100644 --- a/src/Tv/Elements/Credits/Writer.php +++ b/src/Tv/Elements/Credits/Writer.php @@ -7,14 +7,8 @@ class Writer implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Date.php b/src/Tv/Elements/Date.php index f0e6201..697391c 100644 --- a/src/Tv/Elements/Date.php +++ b/src/Tv/Elements/Date.php @@ -7,14 +7,8 @@ class Date implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Desc.php b/src/Tv/Elements/Desc.php index 40218e1..8fafa7a 100644 --- a/src/Tv/Elements/Desc.php +++ b/src/Tv/Elements/Desc.php @@ -6,5 +6,5 @@ class Desc extends LocalizedValue { - protected $name = 'desc'; + protected string $name = 'desc'; } diff --git a/src/Tv/Elements/DisplayName.php b/src/Tv/Elements/DisplayName.php index 4aad38c..24a4d43 100644 --- a/src/Tv/Elements/DisplayName.php +++ b/src/Tv/Elements/DisplayName.php @@ -6,5 +6,5 @@ class DisplayName extends LocalizedValue { - protected $name = 'display-name'; + protected string $name = 'display-name'; } diff --git a/src/Tv/Elements/EpisodeNum.php b/src/Tv/Elements/EpisodeNum.php index cda2792..6d094e9 100644 --- a/src/Tv/Elements/EpisodeNum.php +++ b/src/Tv/Elements/EpisodeNum.php @@ -7,26 +7,13 @@ class EpisodeNum implements XmlSerializable { - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $system; - /** * Length constructor. * - * @param string $value * @param string $system There are two predefined numbering systems: `xmltv_ns` and `onscreen`. */ - public function __construct(string $value, string $system = 'onscreen') + public function __construct(public string $value, public string $system = 'onscreen') { - $this->value = $value; - $this->system = $system; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Icon.php b/src/Tv/Elements/Icon.php index 5925e6d..b5ccdc8 100644 --- a/src/Tv/Elements/Icon.php +++ b/src/Tv/Elements/Icon.php @@ -7,26 +7,8 @@ class Icon implements XmlSerializable { - /** - * @var string - */ - public $src; - - /** - * @var string - */ - public $width; - - /** - * @var string - */ - public $height; - - public function __construct(string $src, string $width = '', string $height = '') + public function __construct(public string $src, public string $width = '', public string $height = '') { - $this->src = $src; - $this->width = $width; - $this->height = $height; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Keyword.php b/src/Tv/Elements/Keyword.php index 9e7a6c1..cc7aec3 100644 --- a/src/Tv/Elements/Keyword.php +++ b/src/Tv/Elements/Keyword.php @@ -6,5 +6,5 @@ class Keyword extends LocalizedValue { - protected $name = 'keyword'; + protected string $name = 'keyword'; } diff --git a/src/Tv/Elements/Language.php b/src/Tv/Elements/Language.php index 6ac0b29..59c1539 100644 --- a/src/Tv/Elements/Language.php +++ b/src/Tv/Elements/Language.php @@ -7,20 +7,8 @@ class Language implements XmlSerializable { - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $lang; - - public function __construct(string $value, string $lang = '') + public function __construct(public string $value, public string $lang = '') { - $this->value = $value; - $this->lang = $lang; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/LastChance.php b/src/Tv/Elements/LastChance.php index e6cdf8e..031538f 100644 --- a/src/Tv/Elements/LastChance.php +++ b/src/Tv/Elements/LastChance.php @@ -6,5 +6,5 @@ class LastChance extends LocalizedValue { - protected $name = 'last-chance'; + protected string $name = 'last-chance'; } diff --git a/src/Tv/Elements/Length.php b/src/Tv/Elements/Length.php index 1548ab7..ba29a32 100644 --- a/src/Tv/Elements/Length.php +++ b/src/Tv/Elements/Length.php @@ -7,26 +7,13 @@ class Length implements XmlSerializable { - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $units; - /** * Length constructor. * - * @param string $value * @param string $units Use one of the constants defined in `Tv\Elements\Length\Unit`. */ - public function __construct(string $value, string $units) + public function __construct(public string $value, public string $units) { - $this->value = $value; - $this->units = $units; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Premiere.php b/src/Tv/Elements/Premiere.php index 4eba2f9..b53a1c2 100644 --- a/src/Tv/Elements/Premiere.php +++ b/src/Tv/Elements/Premiere.php @@ -6,5 +6,5 @@ class Premiere extends LocalizedValue { - protected $name = 'premiere'; + protected string $name = 'premiere'; } diff --git a/src/Tv/Elements/PreviouslyShown.php b/src/Tv/Elements/PreviouslyShown.php index 33167e7..a32d8ba 100644 --- a/src/Tv/Elements/PreviouslyShown.php +++ b/src/Tv/Elements/PreviouslyShown.php @@ -7,20 +7,8 @@ class PreviouslyShown implements XmlSerializable { - /** - * @var string - */ - public $start; - - /** - * @var string - */ - public $channel; - - public function __construct(string $start = '', string $channel = '') + public function __construct(public string $start = '', public string $channel = '') { - $this->start = $start; - $this->channel = $channel; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Rating.php b/src/Tv/Elements/Rating.php index e5ace15..f390ff6 100644 --- a/src/Tv/Elements/Rating.php +++ b/src/Tv/Elements/Rating.php @@ -7,30 +7,15 @@ class Rating implements XmlSerializable { - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $system; - /** * @var Icon[] */ - private $icon = []; + private array $icon = []; - public function __construct(string $value, string $system = '') + public function __construct(public string $value, public string $system = '') { - $this->value = $value; - $this->system = $system; } - /** - * @param Icon $icon - */ public function addIcon(Icon $icon): void { array_push($this->icon, $icon); diff --git a/src/Tv/Elements/Review.php b/src/Tv/Elements/Review.php index 8325ae8..bd778e3 100644 --- a/src/Tv/Elements/Review.php +++ b/src/Tv/Elements/Review.php @@ -7,47 +7,18 @@ class Review implements XmlSerializable { - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $type; - - /** - * @var string - */ - public $source; - - /** - * @var string - */ - public $reviewer; - - /** - * @var string - */ - public $lang; - /** * Review constructor. * - * @param string $value * @param string $type Legal values are `text` and `url`. - * @param string $source - * @param string $reviewer - * @param string $lang */ - public function __construct(string $value, string $type, string $source = '', string $reviewer = '', string $lang = '') - { - $this->value = $value; - $this->type = $type; - $this->source = $source; - $this->reviewer = $reviewer; - $this->lang = $lang; + public function __construct( + public string $value, + public string $type, + public string $source = '', + public string $reviewer = '', + public string $lang = '' + ) { } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/SubTitle.php b/src/Tv/Elements/SubTitle.php index 46817fc..98ec419 100644 --- a/src/Tv/Elements/SubTitle.php +++ b/src/Tv/Elements/SubTitle.php @@ -6,5 +6,5 @@ class SubTitle extends LocalizedValue { - protected $name = 'sub-title'; + protected string $name = 'sub-title'; } diff --git a/src/Tv/Elements/Subtitles.php b/src/Tv/Elements/Subtitles.php index 5cc7ff7..500e42b 100644 --- a/src/Tv/Elements/Subtitles.php +++ b/src/Tv/Elements/Subtitles.php @@ -7,24 +7,15 @@ class Subtitles implements XmlSerializable { - /** - * @var string - */ - public $type; - - /** - * @var Language|null - */ - public $language; + public ?Language $language = null; /** * Subtitles constructor. * * @param string $type Legal values are `teletext`, `onscreen` or `deaf-signed`. */ - public function __construct(string $type = '') + public function __construct(public string $type = '') { - $this->type = $type; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Title.php b/src/Tv/Elements/Title.php index 5baa9cf..dc3a70f 100644 --- a/src/Tv/Elements/Title.php +++ b/src/Tv/Elements/Title.php @@ -6,5 +6,5 @@ class Title extends LocalizedValue { - protected $name = 'title'; + protected string $name = 'title'; } diff --git a/src/Tv/Elements/Url.php b/src/Tv/Elements/Url.php index e7277a9..2868608 100644 --- a/src/Tv/Elements/Url.php +++ b/src/Tv/Elements/Url.php @@ -7,14 +7,8 @@ class Url implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Value.php b/src/Tv/Elements/Value.php index e989115..0c9827d 100644 --- a/src/Tv/Elements/Value.php +++ b/src/Tv/Elements/Value.php @@ -7,14 +7,8 @@ class Value implements XmlSerializable { - /** - * @var string - */ - public $value; - - public function __construct(string $value) + public function __construct(public string $value) { - $this->value = $value; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Elements/Video.php b/src/Tv/Elements/Video.php index cf17e70..0b96453 100644 --- a/src/Tv/Elements/Video.php +++ b/src/Tv/Elements/Video.php @@ -7,26 +7,6 @@ class Video implements XmlSerializable { - /** - * @var string - */ - public $present; - - /** - * @var string - */ - public $colour; - - /** - * @var string - */ - public $aspect; - - /** - * @var string - */ - public $quality; - /** * Video constructor. * @@ -35,12 +15,12 @@ class Video implements XmlSerializable * @param string $aspect The horizontal:vertical aspect ratio, eg `4:3` or `16:9`. * @param string $quality Information on the quality, eg `HDTV`, `800x600`. */ - public function __construct(string $present = '', string $colour = '', string $aspect = '', string $quality = '') - { - $this->present = $present; - $this->colour = $colour; - $this->aspect = $aspect; - $this->quality = $quality; + public function __construct( + public string $present = '', + public string $colour = '', + public string $aspect = '', + public string $quality = '' + ) { } public function xmlSerialize(): XmlElement diff --git a/src/Tv/LocalizedValue.php b/src/Tv/LocalizedValue.php index 4926693..9d484e7 100644 --- a/src/Tv/LocalizedValue.php +++ b/src/Tv/LocalizedValue.php @@ -7,25 +7,10 @@ abstract class LocalizedValue implements XmlSerializable { - /** - * @var string - */ - protected $name; + protected string $name = ''; - /** - * @var string - */ - public $value; - - /** - * @var string - */ - public $lang; - - public function __construct(string $value, string $lang = '') + public function __construct(public string $value, public string $lang = '') { - $this->value = $value; - $this->lang = $lang; } public function xmlSerialize(): XmlElement diff --git a/src/Tv/Programme.php b/src/Tv/Programme.php index 4a9e48b..929793b 100644 --- a/src/Tv/Programme.php +++ b/src/Tv/Programme.php @@ -31,196 +31,110 @@ class Programme implements XmlSerializable { - /** - * @var string - */ - public $channel; - - /** - * @var string - */ - public $start; - - /** - * @var string - */ - public $stop; - - /** - * @var string - */ - public $pdcStart; - - /** - * @var string - */ - public $vpsStart; - - /** - * @var string - */ - public $showview; - - /** - * @var string - */ - public $videoplus; - - /** - * @var string Legal values are `0` or `1`. - */ - public $clumpidx; - /** * @var string A programme specific identifier for catchup URLs. Not part of the XMLTV specification. * @see https://github.com/kodi-pvr/pvr.iptvsimple/tree/7.0.0-Matrix#supported-m3u-and-xmltv-elements */ - public $catchupId = ''; + public string $catchupId = ''; /** * @var Title[] */ - private $title = []; + private array $title = []; /** * @var SubTitle[] */ - private $subTitle = []; + private array $subTitle = []; /** * @var Desc[] */ - private $desc = []; + private array $desc = []; /** * @var Credits[] */ - private $credits = []; + private array $credits = []; - /** - * @var Date - */ - public $date; + public ?Date $date = null; /** * @var Category[] */ - private $category = []; + private array $category = []; /** * @var Keyword[] */ - private $keyword = []; - - /** - * @var Language - */ - public $language; + private array $keyword = []; - /** - * @var OrigLanguage - */ - public $origLanguage; - - /** - * @var Length - */ - public $length; + public ?Language $language = null; + public ?OrigLanguage $origLanguage = null; + public ?Length $length = null; /** * @var Icon[] */ - private $icon = []; + private array $icon = []; /** * @var Url[] */ - private $url = []; + private array $url = []; /** * @var Country[] */ - private $country = []; + private array $country = []; /** * @var EpisodeNum[] */ - private $episodeNum = []; - - /** - * @var Video - */ - public $video; - - /** - * @var Audio - */ - public $audio; - - /** - * @var PreviouslyShown - */ - public $previouslyShown; - - /** - * @var Premiere - */ - public $premiere; - - /** - * @var LastChance - */ - public $lastChance; + private array $episodeNum = []; - /** - * @var NewProgramme - */ - public $new; + public ?Video $video = null; + public ?Audio $audio = null; + public ?PreviouslyShown $previouslyShown = null; + public ?Premiere $premiere = null; + public ?LastChance $lastChance = null; + public ?NewProgramme $new = null; /** * @var Subtitles[] */ - private $subtitles = []; + private array $subtitles = []; /** * @var Rating[] */ - private $rating = []; + private array $rating = []; /** * @var StarRating[] */ - private $starRating = []; + private array $starRating = []; /** * @var Review[] */ - private $review = []; + private array $review = []; public function __construct( - string $channel, - string $start, - string $stop = '', - string $pdcStart = '', - string $vpsStart = '', - string $showview = '', - string $videoplus = '', - string $clumpidx = '' + public string $channel, + public string $start, + public string $stop = '', + public string $pdcStart = '', + public string $vpsStart = '', + public string $showview = '', + public string $videoplus = '', + /** @var string Legal values are `0` or `1`. */ + public string $clumpidx = '' ) { - $this->channel = $channel; - $this->start = $start; - $this->stop = $stop; - $this->pdcStart = $pdcStart; - $this->vpsStart = $vpsStart; - $this->showview = $showview; - $this->videoplus = $videoplus; - $this->clumpidx = $clumpidx; } /** * Add a title. - * - * @param Title $title */ public function addTitle(Title $title): void { @@ -239,8 +153,6 @@ public function getTitle(): array /** * Add a category. - * - * @param SubTitle $subTitle */ public function addSubTitle(SubTitle $subTitle): void { @@ -259,8 +171,6 @@ public function getSubTitle(): array /** * Add a description. - * - * @param Desc $desc */ public function addDescription(Desc $desc): void { @@ -279,8 +189,6 @@ public function getDescription(): array /** * Add credits. - * - * @param Credits $credits */ public function addCredits(Credits $credits): void { @@ -299,8 +207,6 @@ public function getCredits(): array /** * Add a category. - * - * @param Category $category */ public function addCategory(Category $category): void { @@ -319,8 +225,6 @@ public function getCategory(): array /** * Add a keyword. - * - * @param Keyword $keyword */ public function addKeyword(Keyword $keyword): void { @@ -339,8 +243,6 @@ public function getKeyword(): array /** * Add an icon. - * - * @param Icon $icon */ public function addIcon(Icon $icon): void { @@ -359,8 +261,6 @@ public function getIcon(): array /** * Add a url. - * - * @param Url $url */ public function addUrl(Url $url): void { @@ -379,8 +279,6 @@ public function getUrl(): array /** * Add a country. - * - * @param Country $country */ public function addCountry(Country $country): void { @@ -399,8 +297,6 @@ public function getCountry(): array /** * Add a episode-num. - * - * @param EpisodeNum $episodeNum */ public function addEpisodeNum(EpisodeNum $episodeNum): void { @@ -419,8 +315,6 @@ public function getEpisodeNum(): array /** * Add subtitles. - * - * @param Subtitles $subtitles */ public function addSubtitles(Subtitles $subtitles): void { @@ -439,8 +333,6 @@ public function getSubtitles(): array /** * Add a rating. - * - * @param Rating $rating */ public function addRating(Rating $rating): void { @@ -458,8 +350,6 @@ public function getRating(): array } /** * Add a star-rating. - * - * @param StarRating $rating */ public function addStarRating(StarRating $rating): void { @@ -478,8 +368,6 @@ public function getStarRating(): array /** * Add a review. - * - * @param Review $review */ public function addReview(Review $review): void { diff --git a/src/XmlElement.php b/src/XmlElement.php index 4b1d947..85f6a3e 100644 --- a/src/XmlElement.php +++ b/src/XmlElement.php @@ -8,29 +8,17 @@ class XmlElement implements XmlSerializable { /** - * @var string + * @var array */ - private $name; - - /** - * @var string|null - */ - private $value; - - /** - * @var string[] - */ - private $attributes = []; + private array $attributes = []; /** * @var XmlElement[] */ - private $children = []; + private array $children = []; - public function __construct(string $name, string $value = null) + public function __construct(private string $name, private ?string $value = null) { - $this->name = $name; - $this->value = $value; } public function getName(): string @@ -44,7 +32,7 @@ public function getValue(): ?string } /** - * @return string[] + * @return array */ public function getAttributes(): array { @@ -71,10 +59,6 @@ public function hasChildren(): bool /** * Add an attribute. - * - * @param string $name - * @param string $value - * @return XmlElement */ public function withAttribute(string $name, string $value): XmlElement { @@ -87,9 +71,6 @@ public function withAttribute(string $name, string $value): XmlElement /** * Add a child. - * - * @param ?XmlSerializable $child - * @return XmlElement */ public function withChild(?XmlSerializable $child): XmlElement { @@ -104,7 +85,6 @@ public function withChild(?XmlSerializable $child): XmlElement * Add children. * * @param XmlSerializable[] $children - * @return XmlElement */ public function withChildren(array $children): XmlElement { diff --git a/src/XmlTv.php b/src/XmlTv.php index ffb0994..924a573 100644 --- a/src/XmlTv.php +++ b/src/XmlTv.php @@ -22,10 +22,9 @@ class XmlTv * * @param Tv $tv The Tv object. * @param bool $validate Include the XMLTV DTD (inline) an validate against it. - * @return string * @throws ValidationException */ - public static function generate(Tv $tv, bool $validate = true) + public static function generate(Tv $tv, bool $validate = true): string | false { libxml_use_internal_errors(true); @@ -45,10 +44,6 @@ public static function generate(Tv $tv, bool $validate = true) /** * Render the serialized XML (recursively). - * - * @param DOMNode $domNode - * @param XmlElement $xmlElement - * @return void */ private static function buildDocument(DOMNode $domNode, XmlElement $xmlElement): void { @@ -78,15 +73,13 @@ private static function buildDocument(DOMNode $domNode, XmlElement $xmlElement): * Returns a DOMDocument with an internal XMLTV DTD subset. * * This function uses the XMLWriter extension because it can write internal subsets. - * - * @return DOMDocument */ private static function getDocumentWithDtd(): DOMDocument { $xmlWriter = new XMLWriter(); $xmlWriter->openMemory(); $xmlWriter->startDocument(); - $xmlWriter->writeDTD('tv', null, null, file_get_contents(XmlTv::DTD)); + $xmlWriter->writeDTD('tv', null, null, file_get_contents(XmlTv::DTD) ?: null); $xmlWriter->writeElement('x'); // DOMDocument::loadXML() will only load the DTD if a root element is present. $xmlWriter->endDocument(); @@ -99,9 +92,6 @@ private static function getDocumentWithDtd(): DOMDocument /** * Returns `true` if the passed element is empty. - * - * @param XmlElement $xmlElement - * @return bool */ private static function isEmptyElement(XmlElement $xmlElement): bool {