From 5f32723809f08a1f8a900fb06e99a3f3ab1170b6 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Wed, 11 May 2022 11:32:25 +0100 Subject: [PATCH 1/3] fix: typings --- src/models/ColourSwatches.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/ColourSwatches.php b/src/models/ColourSwatches.php index 328522d..311d7c6 100644 --- a/src/models/ColourSwatches.php +++ b/src/models/ColourSwatches.php @@ -60,17 +60,17 @@ public function __toString(): string } /** - * @return array|mixed|string|null + * @return mixed */ - public function colors() + public function colors(): mixed { return $this->color; } /** - * @return mixed|string + * @return mixed */ - public function labels() + public function labels(): mixed { return $this->label; } From e9d5a9e9d9d212c415b9d7b71dd2951f7e4bdcad Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Wed, 11 May 2022 12:58:08 +0100 Subject: [PATCH 2/3] fix: fixed field requirement --- CHANGELOG.md | 5 +++ src/fields/ColourSwatches.php | 73 +++++++++++++++++++++-------------- src/models/ColourSwatches.php | 1 + 3 files changed, 49 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6d1433..4136665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 4.0.2 - 2022-05-11 + +### Fixed +- Fixed a few missing types + ## 4.0.1 - 2022-05-06 ### Fixed diff --git a/src/fields/ColourSwatches.php b/src/fields/ColourSwatches.php index 7f64215..77a2ffc 100644 --- a/src/fields/ColourSwatches.php +++ b/src/fields/ColourSwatches.php @@ -15,10 +15,16 @@ use craft\base\ElementInterface; use craft\base\Field; use craft\base\PreviewableFieldInterface; +use craft\base\SortableFieldInterface; use craft\helpers\Json; use percipiolondon\colourswatches\assetbundles\colourswatchesfield\ColourSwatchesFieldAsset; -use percipiolondon\colourswatches\ColourSwatches as Plugin; +use percipiolondon\colourswatches\ColourSwatches as ColorSwatches; use percipiolondon\colourswatches\models\ColourSwatches as ColourSwatchesModel; +use Twig\Error\LoaderError; +use Twig\Error\RuntimeError; +use Twig\Error\SyntaxError; +use yii\base\Exception; +use yii\base\InvalidConfigException; use yii\db\Schema; /** @@ -29,7 +35,7 @@ * @property-read string|array $contentColumnType * @property-read null|string $settingsHtml */ -class ColourSwatches extends Field implements PreviewableFieldInterface +class ColourSwatches extends Field implements PreviewableFieldInterface, SortableFieldInterface { // Public Properties // ========================================================================= @@ -62,6 +68,14 @@ public static function displayName(): string return Craft::t('colour-swatches', 'Color Swatches'); } + /** + * @inheritdoc + */ + public static function isRequirable(): bool + { + return true; + } + // Public Methods // ========================================================================= @@ -72,9 +86,7 @@ public static function displayName(): string public function rules(): array { $rules = parent::rules(); - $rules = array_merge($rules, [['options', 'each', 'rule' => ['required']], ]); - - return $rules; + return array_merge($rules, [['options', 'each', 'rule' => ['required']], ]); } @@ -90,9 +102,9 @@ public function getContentColumnType(): array|string /** * @param mixed $value * @param ElementInterface|null $element - * @return mixed + * @return ColourSwatchesModel|null */ - public function normalizeValue(mixed $value, ?ElementInterface $element = null): mixed + public function normalizeValue(mixed $value, ?ElementInterface $element = null): ?ColourSwatchesModel { if ($value instanceof ColourSwatchesModel) { return $value; @@ -103,8 +115,9 @@ public function normalizeValue(mixed $value, ?ElementInterface $element = null): $value = Json::encode($value); } - // quick array transform so that we can ensure and `required fields` fire an error - $valueData = (array)Json::decode($value); + if (is_null($value)) { + return null; + } return new ColourSwatchesModel($value); } @@ -115,19 +128,19 @@ public function normalizeValue(mixed $value, ?ElementInterface $element = null): * @param ElementInterface|null $element * @return mixed */ - public function serializeValue($value, ?ElementInterface $element = null): mixed + public function serializeValue(mixed $value, ?ElementInterface $element = null): mixed { $settingsPalette = $this->options; $saveValue = null; - // if useConfigFile got setted, fetch the objects from that file + // if useConfigFile is set, fetch the objects from that file if ($this->useConfigFile) { - if (Plugin::$plugin->settings->palettes[$this->palette] ?? false) { - //if the palette with the value exists, return this as the settings palette - $settingsPalette = Plugin::$plugin->settings->palettes[$this->palette]; + if (ColorSwatches::$plugin->settings->palettes[$this->palette] ?? false) { + // if the palette with the value exists, return this as the settings palette + $settingsPalette = ColorSwatches::$plugin->settings->palettes[$this->palette]; } else { - //if it doesnt exist, set it to the default colors - $settingsPalette = Plugin::$plugin->settings->colors ?: []; + // if it doesn't exist, set it to the default colors + $settingsPalette = ColorSwatches::$plugin->settings->colors ?: []; } } @@ -141,7 +154,7 @@ public function serializeValue($value, ?ElementInterface $element = null): mixed } } - //if nothing got set, use the default if that exists + // if nothing got set, use the default if that exists if (!$saveValue) { foreach ($settingsPalette as $key => $palette) { $paletteId = is_int($key) ? ($key + 1) : $key; @@ -158,11 +171,11 @@ public function serializeValue($value, ?ElementInterface $element = null): mixed /** * @return string|null - * @throws \Twig\Error\LoaderError - * @throws \Twig\Error\RuntimeError - * @throws \Twig\Error\SyntaxError - * @throws \yii\base\Exception - * @throws \yii\base\InvalidConfigException + * @throws LoaderError + * @throws RuntimeError + * @throws SyntaxError + * @throws Exception + * @throws InvalidConfigException */ public function getSettingsHtml(): ?string { @@ -229,11 +242,11 @@ public function getSettingsHtml(): ?string * @param mixed $value * @param ElementInterface|null $element * @return string - * @throws \Twig\Error\LoaderError - * @throws \Twig\Error\RuntimeError - * @throws \Twig\Error\SyntaxError - * @throws \yii\base\Exception - * @throws \yii\base\InvalidConfigException + * @throws LoaderError + * @throws RuntimeError + * @throws SyntaxError + * @throws Exception + * @throws InvalidConfigException */ public function getInputHtml($value, ?ElementInterface $element = null): string { @@ -259,8 +272,8 @@ public function getInputHtml($value, ?ElementInterface $element = null): string 'field' => $this, 'id' => $id, 'namespacedId' => $namespacedId, - 'configOptions' => Plugin::$plugin->settings->colors, - 'palettes' => Plugin::$plugin->settings->palettes, + 'configOptions' => ColorSwatches::$plugin->settings->colors, + 'palettes' => ColorSwatches::$plugin->settings->palettes, ] ); } @@ -271,7 +284,7 @@ public function getInputHtml($value, ?ElementInterface $element = null): string * @param ElementInterface $element * @return string */ - public function getTableAttributeHtml($value, ElementInterface $element): string + public function getTableAttributeHtml(mixed $value, ElementInterface $element): string { // our preview no data value $color = ''; diff --git a/src/models/ColourSwatches.php b/src/models/ColourSwatches.php index 311d7c6..69618c8 100644 --- a/src/models/ColourSwatches.php +++ b/src/models/ColourSwatches.php @@ -2,6 +2,7 @@ namespace percipiolondon\colourswatches\models; +use Craft; use craft\base\Model; use craft\helpers\Json; From 36c584a2d629364b45f6b920464fc5656f5aa98a Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Wed, 11 May 2022 13:01:42 +0100 Subject: [PATCH 3/3] chore: version bump --- CHANGELOG.md | 1 + composer.json | 4 +- composer.lock | 341 ++++++++++++++++++++++++++++++++------------------ 3 files changed, 219 insertions(+), 127 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4136665..6cbeb92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ## 4.0.2 - 2022-05-11 ### Fixed +- Fixed an issue where the field would save even if it was required - Fixed a few missing types ## 4.0.1 - 2022-05-06 diff --git a/composer.json b/composer.json index 221988b..610ad45 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "percipiolondon/craft-colour-swatches", "description": "Let clients choose from a predefined set of colours and utilise associated colour codes and class names in your templates.", "type": "craft-plugin", - "version": "4.0.1", + "version": "4.0.2", "keywords": [ "craft", "cms", @@ -30,7 +30,7 @@ "prefer-stable": true, "require": { "php": "^8.0.2", - "craftcms/cms": "^4.0.0-beta.1" + "craftcms/cms": "^4.0.0" }, "require-dev": { "craftcms/phpstan": "dev-main" diff --git a/composer.lock b/composer.lock index a2a3df0..ce2b15c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "533e29680481660aae76604b2b74ee39", + "content-hash": "b01ac325c26bff2f4222bb677c4acfb7", "packages": [ { "name": "cebe/markdown", @@ -212,31 +212,32 @@ }, { "name": "composer/composer", - "version": "2.1.9", + "version": "2.2.12", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "e558c88f28d102d497adec4852802c0dc14c7077" + "reference": "ba61e768b410736efe61df01b61f1ec44f51474f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/e558c88f28d102d497adec4852802c0dc14c7077", - "reference": "e558c88f28d102d497adec4852802c0dc14c7077", + "url": "https://api.github.com/repos/composer/composer/zipball/ba61e768b410736efe61df01b61f1ec44f51474f", + "reference": "ba61e768b410736efe61df01b61f1ec44f51474f", "shasum": "" }, "require": { "composer/ca-bundle": "^1.0", "composer/metadata-minifier": "^1.0", + "composer/pcre": "^1.0", "composer/semver": "^3.0", "composer/spdx-licenses": "^1.2", - "composer/xdebug-handler": "^2.0", + "composer/xdebug-handler": "^2.0 || ^3.0", "justinrainbow/json-schema": "^5.2.11", "php": "^5.3.2 || ^7.0 || ^8.0", - "psr/log": "^1.0", + "psr/log": "^1.0 || ^2.0", "react/promise": "^1.2 || ^2.7", "seld/jsonlint": "^1.4", "seld/phar-utils": "^1.0", - "symfony/console": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", + "symfony/console": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0", "symfony/filesystem": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", "symfony/finder": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0", "symfony/process": "^2.8.52 || ^3.4.35 || ^4.4 || ^5.0 || ^6.0" @@ -256,7 +257,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1-dev" + "dev-main": "2.2-dev" } }, "autoload": { @@ -290,7 +291,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", - "source": "https://github.com/composer/composer/tree/2.1.9" + "source": "https://github.com/composer/composer/tree/2.2.12" }, "funding": [ { @@ -306,7 +307,7 @@ "type": "tidelift" } ], - "time": "2021-10-05T07:47:38+00:00" + "time": "2022-04-13T14:42:25+00:00" }, { "name": "composer/metadata-minifier", @@ -611,27 +612,27 @@ }, { "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": { @@ -657,7 +658,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": [ { @@ -673,25 +674,25 @@ "type": "tidelift" } ], - "time": "2022-02-24T20:20:32+00:00" + "time": "2022-02-25T21:32:43+00:00" }, { "name": "craftcms/cms", - "version": "4.0.0-beta.4", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/craftcms/cms.git", - "reference": "867af8684b1cc90c9b0bb0a6fb8e4f2a369b45de" + "reference": "d4f2f5f311eb3829300f0aaccb193ffcca03eaef" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/cms/zipball/867af8684b1cc90c9b0bb0a6fb8e4f2a369b45de", - "reference": "867af8684b1cc90c9b0bb0a6fb8e4f2a369b45de", + "url": "https://api.github.com/repos/craftcms/cms/zipball/d4f2f5f311eb3829300f0aaccb193ffcca03eaef", + "reference": "d4f2f5f311eb3829300f0aaccb193ffcca03eaef", "shasum": "" }, "require": { "commerceguys/addressing": "^1.2", - "composer/composer": "2.1.9", + "composer/composer": "2.2.12", "craftcms/oauth2-craftid": "~1.0.0", "craftcms/plugin-installer": "~1.5.6", "craftcms/server-check": "~2.1.2", @@ -727,7 +728,7 @@ "voku/stringy": "^6.4.0", "webonyx/graphql-php": "~14.11.5", "yiisoft/yii2": "~2.0.45.0", - "yiisoft/yii2-debug": "^2.1.16", + "yiisoft/yii2-debug": "~2.1.19.0", "yiisoft/yii2-queue": "~2.3.2", "yiisoft/yii2-symfonymailer": "^2.0.0" }, @@ -791,7 +792,7 @@ "rss": "https://github.com/craftcms/cms/releases.atom", "source": "https://github.com/craftcms/cms" }, - "time": "2022-04-06T18:49:33+00:00" + "time": "2022-05-06T08:12:52+00:00" }, { "name": "craftcms/oauth2-craftid", @@ -903,16 +904,16 @@ }, { "name": "craftcms/server-check", - "version": "2.1.3", + "version": "2.1.4", "source": { "type": "git", "url": "https://github.com/craftcms/server-check.git", - "reference": "1e052b2a4dc5751b7fe6f96fff5b89e4b1bba9d9" + "reference": "c262ebd39572902bdf4fe3ea570e11cd6725b381" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/server-check/zipball/1e052b2a4dc5751b7fe6f96fff5b89e4b1bba9d9", - "reference": "1e052b2a4dc5751b7fe6f96fff5b89e4b1bba9d9", + "url": "https://api.github.com/repos/craftcms/server-check/zipball/c262ebd39572902bdf4fe3ea570e11cd6725b381", + "reference": "c262ebd39572902bdf4fe3ea570e11cd6725b381", "shasum": "" }, "type": "library", @@ -941,7 +942,7 @@ "rss": "https://github.com/craftcms/server-check/releases.atom", "source": "https://github.com/craftcms/server-check" }, - "time": "2022-02-15T17:25:51+00:00" + "time": "2022-04-17T02:14:46+00:00" }, { "name": "creocoder/yii2-nested-sets", @@ -1729,16 +1730,16 @@ }, { "name": "illuminate/collections", - "version": "v9.8.1", + "version": "v9.12.1", "source": { "type": "git", "url": "https://github.com/illuminate/collections.git", - "reference": "03fc7ae1689cffef8729dc5bad37dcaa3f7064d3" + "reference": "32badf046bfc187afacbee37b9820c5e200285d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/collections/zipball/03fc7ae1689cffef8729dc5bad37dcaa3f7064d3", - "reference": "03fc7ae1689cffef8729dc5bad37dcaa3f7064d3", + "url": "https://api.github.com/repos/illuminate/collections/zipball/32badf046bfc187afacbee37b9820c5e200285d0", + "reference": "32badf046bfc187afacbee37b9820c5e200285d0", "shasum": "" }, "require": { @@ -1780,11 +1781,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-03-30T14:36:23+00:00" + "time": "2022-05-02T14:05:19+00:00" }, { "name": "illuminate/conditionable", - "version": "v9.8.1", + "version": "v9.12.1", "source": { "type": "git", "url": "https://github.com/illuminate/conditionable.git", @@ -1830,16 +1831,16 @@ }, { "name": "illuminate/contracts", - "version": "v9.8.1", + "version": "v9.12.1", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "de0878799e3eaccb5efdf714c516522fa53b7c81" + "reference": "e354ef98f3c59e5c8b5ba87299999220270f3da5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/de0878799e3eaccb5efdf714c516522fa53b7c81", - "reference": "de0878799e3eaccb5efdf714c516522fa53b7c81", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/e354ef98f3c59e5c8b5ba87299999220270f3da5", + "reference": "e354ef98f3c59e5c8b5ba87299999220270f3da5", "shasum": "" }, "require": { @@ -1874,11 +1875,11 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2022-03-18T14:48:15+00:00" + "time": "2022-04-28T13:05:07+00:00" }, { "name": "illuminate/macroable", - "version": "v9.8.1", + "version": "v9.12.1", "source": { "type": "git", "url": "https://github.com/illuminate/macroable.git", @@ -2199,16 +2200,16 @@ }, { "name": "monolog/monolog", - "version": "2.5.0", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "4192345e260f1d51b365536199744b987e160edc" + "reference": "247918972acd74356b0a91dfaa5adcaec069b6c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4192345e260f1d51b365536199744b987e160edc", - "reference": "4192345e260f1d51b365536199744b987e160edc", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/247918972acd74356b0a91dfaa5adcaec069b6c0", + "reference": "247918972acd74356b0a91dfaa5adcaec069b6c0", "shasum": "" }, "require": { @@ -2221,18 +2222,23 @@ "require-dev": { "aws/aws-sdk-php": "^2.4.9 || ^3.0", "doctrine/couchdb": "~1.0@dev", - "elasticsearch/elasticsearch": "^7", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", "graylog2/gelf-php": "^1.4.2", + "guzzlehttp/guzzle": "^7.4", + "guzzlehttp/psr7": "^2.2", "mongodb/mongodb": "^1.8", "php-amqplib/php-amqplib": "~2.4 || ^3", "php-console/php-console": "^3.1.3", - "phpspec/prophecy": "^1.6.1", + "phpspec/prophecy": "^1.15", "phpstan/phpstan": "^0.12.91", - "phpunit/phpunit": "^8.5", + "phpunit/phpunit": "^8.5.14", "predis/predis": "^1.1", "rollbar/rollbar": "^1.3 || ^2 || ^3", - "ruflin/elastica": ">=0.90@dev", - "swiftmailer/swiftmailer": "^5.3|^6.0" + "ruflin/elastica": "^7", + "swiftmailer/swiftmailer": "^5.3|^6.0", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", @@ -2282,7 +2288,7 @@ ], "support": { "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.5.0" + "source": "https://github.com/Seldaek/monolog/tree/2.6.0" }, "funding": [ { @@ -2294,7 +2300,7 @@ "type": "tidelift" } ], - "time": "2022-04-08T15:43:54+00:00" + "time": "2022-05-10T09:36:00+00:00" }, { "name": "paragonie/random_compat", @@ -3282,42 +3288,46 @@ }, { "name": "symfony/console", - "version": "v6.0.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "70dcf7b2ca2ea08ad6ebcc475f104a024fb5632e" + "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/70dcf7b2ca2ea08ad6ebcc475f104a024fb5632e", - "reference": "70dcf7b2ca2ea08ad6ebcc475f104a024fb5632e", + "url": "https://api.github.com/repos/symfony/console/zipball/ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", + "reference": "ffe3aed36c4d60da2cf1b0a1cee6b8f2e5fa881b", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", "symfony/service-contracts": "^1.1|^2|^3", - "symfony/string": "^5.4|^6.0" + "symfony/string": "^5.1|^6.0" }, "conflict": { - "symfony/dependency-injection": "<5.4", - "symfony/dotenv": "<5.4", - "symfony/event-dispatcher": "<5.4", - "symfony/lock": "<5.4", - "symfony/process": "<5.4" + "psr/log": ">=3", + "symfony/dependency-injection": "<4.4", + "symfony/dotenv": "<5.1", + "symfony/event-dispatcher": "<4.4", + "symfony/lock": "<4.4", + "symfony/process": "<4.4" }, "provide": { - "psr/log-implementation": "1.0|2.0|3.0" + "psr/log-implementation": "1.0|2.0" }, "require-dev": { - "psr/log": "^1|^2|^3", - "symfony/config": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/event-dispatcher": "^5.4|^6.0", - "symfony/lock": "^5.4|^6.0", - "symfony/process": "^5.4|^6.0", - "symfony/var-dumper": "^5.4|^6.0" + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" }, "suggest": { "psr/log": "For using the console logger", @@ -3357,7 +3367,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.0.7" + "source": "https://github.com/symfony/console/tree/v5.4.8" }, "funding": [ { @@ -3373,7 +3383,7 @@ "type": "tidelift" } ], - "time": "2022-03-31T17:18:25+00:00" + "time": "2022-04-12T16:02:29+00:00" }, { "name": "symfony/deprecation-contracts", @@ -3669,16 +3679,16 @@ }, { "name": "symfony/finder", - "version": "v6.0.3", + "version": "v6.0.8", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "8661b74dbabc23223f38c9b99d3f8ade71170430" + "reference": "af7edab28d17caecd1f40a9219fc646ae751c21f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/8661b74dbabc23223f38c9b99d3f8ade71170430", - "reference": "8661b74dbabc23223f38c9b99d3f8ade71170430", + "url": "https://api.github.com/repos/symfony/finder/zipball/af7edab28d17caecd1f40a9219fc646ae751c21f", + "reference": "af7edab28d17caecd1f40a9219fc646ae751c21f", "shasum": "" }, "require": { @@ -3710,7 +3720,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.0.3" + "source": "https://github.com/symfony/finder/tree/v6.0.8" }, "funding": [ { @@ -3726,20 +3736,20 @@ "type": "tidelift" } ], - "time": "2022-01-26T17:23:29+00:00" + "time": "2022-04-15T08:07:58+00:00" }, { "name": "symfony/http-client", - "version": "v6.0.7", + "version": "v6.0.8", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "a7930c47248b9b57e9d0b8da100ffc1e031536dc" + "reference": "d347895193283e08b4c3ebf2f2974a1df3e1f670" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/a7930c47248b9b57e9d0b8da100ffc1e031536dc", - "reference": "a7930c47248b9b57e9d0b8da100ffc1e031536dc", + "url": "https://api.github.com/repos/symfony/http-client/zipball/d347895193283e08b4c3ebf2f2974a1df3e1f670", + "reference": "d347895193283e08b4c3ebf2f2974a1df3e1f670", "shasum": "" }, "require": { @@ -3794,7 +3804,7 @@ "description": "Provides powerful methods to fetch HTTP resources synchronously or asynchronously", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/http-client/tree/v6.0.7" + "source": "https://github.com/symfony/http-client/tree/v6.0.8" }, "funding": [ { @@ -3810,7 +3820,7 @@ "type": "tidelift" } ], - "time": "2022-04-01T12:27:43+00:00" + "time": "2022-04-12T16:11:42+00:00" }, { "name": "symfony/http-client-contracts", @@ -3892,16 +3902,16 @@ }, { "name": "symfony/mailer", - "version": "v6.0.7", + "version": "v6.0.8", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "f7343f94e7afecca2ad840b078f9d80200e1bd27" + "reference": "706af6b3e99ebcbc639c9c664f5579aaa869409b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/f7343f94e7afecca2ad840b078f9d80200e1bd27", - "reference": "f7343f94e7afecca2ad840b078f9d80200e1bd27", + "url": "https://api.github.com/repos/symfony/mailer/zipball/706af6b3e99ebcbc639c9c664f5579aaa869409b", + "reference": "706af6b3e99ebcbc639c9c664f5579aaa869409b", "shasum": "" }, "require": { @@ -3946,7 +3956,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v6.0.7" + "source": "https://github.com/symfony/mailer/tree/v6.0.8" }, "funding": [ { @@ -3962,20 +3972,20 @@ "type": "tidelift" } ], - "time": "2022-03-18T16:06:28+00:00" + "time": "2022-04-27T17:10:30+00:00" }, { "name": "symfony/mime", - "version": "v6.0.7", + "version": "v6.0.8", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "74266e396f812a2301536397a6360b6e6913c0d8" + "reference": "c1701e88ad0ca49fc6ad6cdf360bc0e1209fb5e1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/74266e396f812a2301536397a6360b6e6913c0d8", - "reference": "74266e396f812a2301536397a6360b6e6913c0d8", + "url": "https://api.github.com/repos/symfony/mime/zipball/c1701e88ad0ca49fc6ad6cdf360bc0e1209fb5e1", + "reference": "c1701e88ad0ca49fc6ad6cdf360bc0e1209fb5e1", "shasum": "" }, "require": { @@ -4027,7 +4037,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v6.0.7" + "source": "https://github.com/symfony/mime/tree/v6.0.8" }, "funding": [ { @@ -4043,7 +4053,7 @@ "type": "tidelift" } ], - "time": "2022-03-13T20:10:05+00:00" + "time": "2022-04-12T16:11:42+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4621,6 +4631,85 @@ ], "time": "2021-05-27T09:17:38+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" + }, + "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-06-05T21:20:04+00:00" + }, { "name": "symfony/polyfill-php80", "version": "v1.25.0", @@ -4706,16 +4795,16 @@ }, { "name": "symfony/process", - "version": "v5.4.7", + "version": "v5.4.8", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb" + "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/38a44b2517b470a436e1c944bf9b9ba3961137fb", - "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb", + "url": "https://api.github.com/repos/symfony/process/zipball/597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", + "reference": "597f3fff8e3e91836bb0bd38f5718b56ddbde2f3", "shasum": "" }, "require": { @@ -4748,7 +4837,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.7" + "source": "https://github.com/symfony/process/tree/v5.4.8" }, "funding": [ { @@ -4764,7 +4853,7 @@ "type": "tidelift" } ], - "time": "2022-03-18T16:18:52+00:00" + "time": "2022-04-08T05:07:18+00:00" }, { "name": "symfony/service-contracts", @@ -4850,16 +4939,16 @@ }, { "name": "symfony/string", - "version": "v6.0.3", + "version": "v6.0.8", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2" + "reference": "ac0aa5c2282e0de624c175b68d13f2c8f2e2649d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/522144f0c4c004c80d56fa47e40e17028e2eefc2", - "reference": "522144f0c4c004c80d56fa47e40e17028e2eefc2", + "url": "https://api.github.com/repos/symfony/string/zipball/ac0aa5c2282e0de624c175b68d13f2c8f2e2649d", + "reference": "ac0aa5c2282e0de624c175b68d13f2c8f2e2649d", "shasum": "" }, "require": { @@ -4915,7 +5004,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.3" + "source": "https://github.com/symfony/string/tree/v6.0.8" }, "funding": [ { @@ -4931,20 +5020,20 @@ "type": "tidelift" } ], - "time": "2022-01-02T09:55:41+00:00" + "time": "2022-04-22T08:18:02+00:00" }, { "name": "symfony/var-dumper", - "version": "v6.0.6", + "version": "v6.0.8", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "38358405ae948963c50a3aae3dfea598223ba15e" + "reference": "fa61dfb4bd3068df2492013dc65f3190e9f550c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/38358405ae948963c50a3aae3dfea598223ba15e", - "reference": "38358405ae948963c50a3aae3dfea598223ba15e", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/fa61dfb4bd3068df2492013dc65f3190e9f550c0", + "reference": "fa61dfb4bd3068df2492013dc65f3190e9f550c0", "shasum": "" }, "require": { @@ -5003,7 +5092,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.0.6" + "source": "https://github.com/symfony/var-dumper/tree/v6.0.8" }, "funding": [ { @@ -5019,7 +5108,7 @@ "type": "tidelift" } ], - "time": "2022-03-02T12:58:14+00:00" + "time": "2022-04-26T13:22:23+00:00" }, { "name": "symfony/yaml", @@ -6533,16 +6622,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.5.4", + "version": "1.6.8", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "bbf68cae24f6dc023c607ea0f87da55dd9d55c2b" + "reference": "d76498c5531232cb8386ceb6004f7e013138d3ba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/bbf68cae24f6dc023c607ea0f87da55dd9d55c2b", - "reference": "bbf68cae24f6dc023c607ea0f87da55dd9d55c2b", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d76498c5531232cb8386ceb6004f7e013138d3ba", + "reference": "d76498c5531232cb8386ceb6004f7e013138d3ba", "shasum": "" }, "require": { @@ -6568,7 +6657,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.5.4" + "source": "https://github.com/phpstan/phpstan/tree/1.6.8" }, "funding": [ { @@ -6588,7 +6677,7 @@ "type": "tidelift" } ], - "time": "2022-04-03T12:39:00+00:00" + "time": "2022-05-10T06:54:21+00:00" } ], "aliases": [], @@ -6598,7 +6687,9 @@ }, "prefer-stable": true, "prefer-lowest": false, - "platform": [], + "platform": { + "php": "^8.0.2" + }, "platform-dev": [], "plugin-api-version": "2.1.0" }