diff --git a/composer.lock b/composer.lock index f74fc29fc0..ca12f99341 100644 --- a/composer.lock +++ b/composer.lock @@ -331,16 +331,16 @@ }, { "name": "craftcms/cms", - "version": "5.6.0.2", + "version": "5.6.4", "source": { "type": "git", "url": "https://github.com/craftcms/cms.git", - "reference": "40fb91c1dc33e83d9f9fbc22af43d88444bc501c" + "reference": "7547163b18b33b3ccde54ea97713a95fd2e94f14" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/cms/zipball/40fb91c1dc33e83d9f9fbc22af43d88444bc501c", - "reference": "40fb91c1dc33e83d9f9fbc22af43d88444bc501c", + "url": "https://api.github.com/repos/craftcms/cms/zipball/7547163b18b33b3ccde54ea97713a95fd2e94f14", + "reference": "7547163b18b33b3ccde54ea97713a95fd2e94f14", "shasum": "" }, "require": { @@ -456,7 +456,7 @@ "rss": "https://github.com/craftcms/cms/releases.atom", "source": "https://github.com/craftcms/cms" }, - "time": "2025-01-22T01:47:49+00:00" + "time": "2025-01-31T00:08:51+00:00" }, { "name": "craftcms/plugin-installer", @@ -4084,16 +4084,16 @@ }, { "name": "symfony/dom-crawler", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/dom-crawler.git", - "reference": "b176e1f1f550ef44c94eb971bf92488de08f7c6b" + "reference": "700a880e5089280c7cf3ca1ccf9d9de6630f5d25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/b176e1f1f550ef44c94eb971bf92488de08f7c6b", - "reference": "b176e1f1f550ef44c94eb971bf92488de08f7c6b", + "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/700a880e5089280c7cf3ca1ccf9d9de6630f5d25", + "reference": "700a880e5089280c7cf3ca1ccf9d9de6630f5d25", "shasum": "" }, "require": { @@ -4131,7 +4131,7 @@ "description": "Eases DOM navigation for HTML and XML documents", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/dom-crawler/tree/v7.2.0" + "source": "https://github.com/symfony/dom-crawler/tree/v7.2.3" }, "funding": [ { @@ -4147,7 +4147,7 @@ "type": "tidelift" } ], - "time": "2024-11-13T16:15:23+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/event-dispatcher", @@ -4373,16 +4373,16 @@ }, { "name": "symfony/http-client", - "version": "v6.4.17", + "version": "v6.4.18", "source": { "type": "git", "url": "https://github.com/symfony/http-client.git", - "reference": "88898d842eb29d7e1a903724c94e90a6ca9c0509" + "reference": "394b440934056b8d9d6ba250001458e9d7998b7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client/zipball/88898d842eb29d7e1a903724c94e90a6ca9c0509", - "reference": "88898d842eb29d7e1a903724c94e90a6ca9c0509", + "url": "https://api.github.com/repos/symfony/http-client/zipball/394b440934056b8d9d6ba250001458e9d7998b7f", + "reference": "394b440934056b8d9d6ba250001458e9d7998b7f", "shasum": "" }, "require": { @@ -4446,7 +4446,7 @@ "http" ], "support": { - "source": "https://github.com/symfony/http-client/tree/v6.4.17" + "source": "https://github.com/symfony/http-client/tree/v6.4.18" }, "funding": [ { @@ -4462,7 +4462,7 @@ "type": "tidelift" } ], - "time": "2024-12-18T12:18:31+00:00" + "time": "2025-01-28T15:49:13+00:00" }, { "name": "symfony/http-client-contracts", @@ -4544,16 +4544,16 @@ }, { "name": "symfony/mailer", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/mailer.git", - "reference": "e4d358702fb66e4c8a2af08e90e7271a62de39cc" + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/e4d358702fb66e4c8a2af08e90e7271a62de39cc", - "reference": "e4d358702fb66e4c8a2af08e90e7271a62de39cc", + "url": "https://api.github.com/repos/symfony/mailer/zipball/f3871b182c44997cf039f3b462af4a48fb85f9d3", + "reference": "f3871b182c44997cf039f3b462af4a48fb85f9d3", "shasum": "" }, "require": { @@ -4604,7 +4604,7 @@ "description": "Helps sending emails", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/mailer/tree/v7.2.0" + "source": "https://github.com/symfony/mailer/tree/v7.2.3" }, "funding": [ { @@ -4620,20 +4620,20 @@ "type": "tidelift" } ], - "time": "2024-11-25T15:21:05+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/mime", - "version": "v7.2.1", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/mime.git", - "reference": "7f9617fcf15cb61be30f8b252695ed5e2bfac283" + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/mime/zipball/7f9617fcf15cb61be30f8b252695ed5e2bfac283", - "reference": "7f9617fcf15cb61be30f8b252695ed5e2bfac283", + "url": "https://api.github.com/repos/symfony/mime/zipball/2fc3b4bd67e4747e45195bc4c98bea4628476204", + "reference": "2fc3b4bd67e4747e45195bc4c98bea4628476204", "shasum": "" }, "require": { @@ -4688,7 +4688,7 @@ "mime-type" ], "support": { - "source": "https://github.com/symfony/mime/tree/v7.2.1" + "source": "https://github.com/symfony/mime/tree/v7.2.3" }, "funding": [ { @@ -4704,7 +4704,7 @@ "type": "tidelift" } ], - "time": "2024-12-07T08:50:44+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/polyfill-ctype", @@ -5470,16 +5470,16 @@ }, { "name": "symfony/property-access", - "version": "v7.2.0", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/property-access.git", - "reference": "3ae42efba01e45aaedecf5c93c8d6a3ab3a82276" + "reference": "b28732e315d81fbec787f838034de7d6c9b2b902" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-access/zipball/3ae42efba01e45aaedecf5c93c8d6a3ab3a82276", - "reference": "3ae42efba01e45aaedecf5c93c8d6a3ab3a82276", + "url": "https://api.github.com/repos/symfony/property-access/zipball/b28732e315d81fbec787f838034de7d6c9b2b902", + "reference": "b28732e315d81fbec787f838034de7d6c9b2b902", "shasum": "" }, "require": { @@ -5526,7 +5526,7 @@ "reflection" ], "support": { - "source": "https://github.com/symfony/property-access/tree/v7.2.0" + "source": "https://github.com/symfony/property-access/tree/v7.2.3" }, "funding": [ { @@ -5542,20 +5542,20 @@ "type": "tidelift" } ], - "time": "2024-09-26T12:28:35+00:00" + "time": "2025-01-17T10:56:55+00:00" }, { "name": "symfony/property-info", - "version": "v7.2.2", + "version": "v7.2.3", "source": { "type": "git", "url": "https://github.com/symfony/property-info.git", - "reference": "1dfeb0dac7a99f7b3be42db9ccc299c5a6483fcf" + "reference": "dedb118fd588a92f226b390250b384d25f4192fe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/property-info/zipball/1dfeb0dac7a99f7b3be42db9ccc299c5a6483fcf", - "reference": "1dfeb0dac7a99f7b3be42db9ccc299c5a6483fcf", + "url": "https://api.github.com/repos/symfony/property-info/zipball/dedb118fd588a92f226b390250b384d25f4192fe", + "reference": "dedb118fd588a92f226b390250b384d25f4192fe", "shasum": "" }, "require": { @@ -5566,7 +5566,9 @@ "conflict": { "phpdocumentor/reflection-docblock": "<5.2", "phpdocumentor/type-resolver": "<1.5.1", - "symfony/dependency-injection": "<6.4" + "symfony/cache": "<6.4", + "symfony/dependency-injection": "<6.4", + "symfony/serializer": "<6.4" }, "require-dev": { "phpdocumentor/reflection-docblock": "^5.2", @@ -5609,7 +5611,7 @@ "validator" ], "support": { - "source": "https://github.com/symfony/property-info/tree/v7.2.2" + "source": "https://github.com/symfony/property-info/tree/v7.2.3" }, "funding": [ { @@ -5625,20 +5627,20 @@ "type": "tidelift" } ], - "time": "2024-12-31T11:04:50+00:00" + "time": "2025-01-27T11:08:17+00:00" }, { "name": "symfony/serializer", - "version": "v6.4.15", + "version": "v6.4.18", "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "9d862d66198f3c2e30404228629ef4c18d5d608e" + "reference": "6ad986f62276da4c8c69754decfaa445a89cb6e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/9d862d66198f3c2e30404228629ef4c18d5d608e", - "reference": "9d862d66198f3c2e30404228629ef4c18d5d608e", + "url": "https://api.github.com/repos/symfony/serializer/zipball/6ad986f62276da4c8c69754decfaa445a89cb6e3", + "reference": "6ad986f62276da4c8c69754decfaa445a89cb6e3", "shasum": "" }, "require": { @@ -5707,7 +5709,7 @@ "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/serializer/tree/v6.4.15" + "source": "https://github.com/symfony/serializer/tree/v6.4.18" }, "funding": [ { @@ -5723,7 +5725,7 @@ "type": "tidelift" } ], - "time": "2024-10-23T13:25:59+00:00" + "time": "2025-01-28T18:47:02+00:00" }, { "name": "symfony/service-contracts", @@ -6046,16 +6048,16 @@ }, { "name": "symfony/var-dumper", - "version": "v6.4.15", + "version": "v6.4.18", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80" + "reference": "4ad10cf8b020e77ba665305bb7804389884b4837" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80", - "reference": "38254d5a5ac2e61f2b52f9caf54e7aa3c9d36b80", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/4ad10cf8b020e77ba665305bb7804389884b4837", + "reference": "4ad10cf8b020e77ba665305bb7804389884b4837", "shasum": "" }, "require": { @@ -6111,7 +6113,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v6.4.15" + "source": "https://github.com/symfony/var-dumper/tree/v6.4.18" }, "funding": [ { @@ -6127,7 +6129,7 @@ "type": "tidelift" } ], - "time": "2024-11-08T15:28:48+00:00" + "time": "2025-01-17T11:26:11+00:00" }, { "name": "symfony/yaml", @@ -6206,16 +6208,16 @@ }, { "name": "tecnickcom/tcpdf", - "version": "6.8.0", + "version": "6.8.2", "source": { "type": "git", "url": "https://github.com/tecnickcom/TCPDF.git", - "reference": "14ffa0e308f5634aa2489568b4b90b24073b6731" + "reference": "f7a781073e1645062f163e058139e2f89355d420" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tecnickcom/TCPDF/zipball/14ffa0e308f5634aa2489568b4b90b24073b6731", - "reference": "14ffa0e308f5634aa2489568b4b90b24073b6731", + "url": "https://api.github.com/repos/tecnickcom/TCPDF/zipball/f7a781073e1645062f163e058139e2f89355d420", + "reference": "f7a781073e1645062f163e058139e2f89355d420", "shasum": "" }, "require": { @@ -6267,7 +6269,7 @@ ], "support": { "issues": "https://github.com/tecnickcom/TCPDF/issues", - "source": "https://github.com/tecnickcom/TCPDF/tree/6.8.0" + "source": "https://github.com/tecnickcom/TCPDF/tree/6.8.2" }, "funding": [ { @@ -6275,7 +6277,7 @@ "type": "custom" } ], - "time": "2024-12-23T13:34:57+00:00" + "time": "2025-01-26T14:03:12+00:00" }, { "name": "theiconic/name-parser", @@ -8560,20 +8562,20 @@ }, { "name": "craftcms/ckeditor", - "version": "4.4.0", + "version": "4.5.0", "source": { "type": "git", "url": "https://github.com/craftcms/ckeditor.git", - "reference": "5b219fe06b395b411df0d61137fd750e834b8022" + "reference": "7a366bae76e17c96bc3eae18d0db9764799dd7ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/craftcms/ckeditor/zipball/5b219fe06b395b411df0d61137fd750e834b8022", - "reference": "5b219fe06b395b411df0d61137fd750e834b8022", + "url": "https://api.github.com/repos/craftcms/ckeditor/zipball/7a366bae76e17c96bc3eae18d0db9764799dd7ec", + "reference": "7a366bae76e17c96bc3eae18d0db9764799dd7ec", "shasum": "" }, "require": { - "craftcms/cms": "^5.5.0", + "craftcms/cms": "^5.6.0", "craftcms/html-field": "^3.1.0", "nystudio107/craft-code-editor": ">=1.0.8 <=1.0.13 || ^1.0.16", "php": "^8.2" @@ -8620,7 +8622,7 @@ "rss": "https://github.com/craftcms/ckeditor/commits/master.atom", "source": "https://github.com/craftcms/ckeditor" }, - "time": "2024-11-12T17:32:39+00:00" + "time": "2025-01-23T20:00:00+00:00" }, { "name": "craftcms/ecs", @@ -9928,16 +9930,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.5.3", + "version": "11.5.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "30e319e578a7b5da3543073e30002bf82042f701" + "reference": "b9a975972f580c0491f834eb0818ad2b32fd8bba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/30e319e578a7b5da3543073e30002bf82042f701", - "reference": "30e319e578a7b5da3543073e30002bf82042f701", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b9a975972f580c0491f834eb0818ad2b32fd8bba", + "reference": "b9a975972f580c0491f834eb0818ad2b32fd8bba", "shasum": "" }, "require": { @@ -10009,7 +10011,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.3" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.5" }, "funding": [ { @@ -10025,7 +10027,7 @@ "type": "tidelift" } ], - "time": "2025-01-13T09:36:00+00:00" + "time": "2025-01-29T14:01:11+00:00" }, { "name": "psy/psysh", diff --git a/rector.php b/rector.php index 8efe57def1..75e4ab089c 100644 --- a/rector.php +++ b/rector.php @@ -1,17 +1,11 @@ import(SetList::CODE_QUALITY); +declare(strict_types=1); -// register single rule - $services = $containerConfigurator->services(); - // $containerConfigurator->import(SetList::PHP_80); - $services->set(\Rector\Php80\Rector\FunctionLike\UnionTypesRector::class); - $services->set(\Rector\Php80\Rector\NotIdentical\StrContainsRector::class); - $services->set(\Rector\Php80\Rector\Identical\StrStartsWithRector::class); - $services->set(\Rector\Php80\Rector\Identical\StrEndsWithRector::class); - $services->set(\Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector::class); -}; \ No newline at end of file +use Rector\Config\RectorConfig; + +return RectorConfig::configure() + ->withPaths([ + __DIR__ . '/src', + ]) + ->withPhpSets(php56: true); diff --git a/src/fieldlayoutelements/ProductTitleField.php b/src/fieldlayoutelements/ProductTitleField.php index e05b6a6aec..372c182cea 100644 --- a/src/fieldlayoutelements/ProductTitleField.php +++ b/src/fieldlayoutelements/ProductTitleField.php @@ -41,7 +41,7 @@ protected function selectorInnerHtml(): string protected function translatable(?ElementInterface $element = null, bool $static = false): bool { if (!$element instanceof Product) { - throw new \InvalidArgumentException(sprintf('%s can only be used in product field layouts.', __CLASS__)); + throw new \InvalidArgumentException(sprintf('%s can only be used in product field layouts.', self::class)); } return $element->getType()->productTitleTranslationMethod !== Field::TRANSLATION_METHOD_NONE; @@ -53,7 +53,7 @@ protected function translatable(?ElementInterface $element = null, bool $static protected function translationDescription(?ElementInterface $element = null, bool $static = false): ?string { if (!$element instanceof Product) { - throw new \InvalidArgumentException(sprintf('%s can only be used in product field layouts.', __CLASS__)); + throw new \InvalidArgumentException(sprintf('%s can only be used in product field layouts.', self::class)); } return ElementHelper::translationDescription($element->getType()->productTitleTranslationMethod); diff --git a/src/fieldlayoutelements/VariantTitleField.php b/src/fieldlayoutelements/VariantTitleField.php index e7f0675d5e..2ca44fa4ab 100644 --- a/src/fieldlayoutelements/VariantTitleField.php +++ b/src/fieldlayoutelements/VariantTitleField.php @@ -41,7 +41,7 @@ protected function selectorInnerHtml(): string protected function translatable(?ElementInterface $element = null, bool $static = false): bool { if (!$element instanceof Variant) { - throw new \InvalidArgumentException(sprintf('%s can only be used in variant field layouts.', __CLASS__)); + throw new \InvalidArgumentException(sprintf('%s can only be used in variant field layouts.', self::class)); } return $element->getOwner()->getType()->variantTitleTranslationMethod !== Field::TRANSLATION_METHOD_NONE; @@ -53,7 +53,7 @@ protected function translatable(?ElementInterface $element = null, bool $static protected function translationDescription(?ElementInterface $element = null, bool $static = false): ?string { if (!$element instanceof Variant) { - throw new \InvalidArgumentException(sprintf('%s can only be used in variant field layouts.', __CLASS__)); + throw new \InvalidArgumentException(sprintf('%s can only be used in variant field layouts.', self::class)); } return ElementHelper::translationDescription($element->getOwner()->getType()->variantTitleTranslationMethod); diff --git a/src/gateways/Dummy.php b/src/gateways/Dummy.php index d2fd2f56d8..8add1f0790 100644 --- a/src/gateways/Dummy.php +++ b/src/gateways/Dummy.php @@ -155,7 +155,7 @@ public function purchase(Transaction $transaction, BasePaymentForm $form): Reque */ public function processWebHook(): WebResponse { - throw new NotSupportedException(__CLASS__ . ' does not support processWebhook()'); + throw new NotSupportedException(self::class . ' does not support processWebhook()'); } /**