From 2a8b62b47bf36fe1031030591b6ecd82af5e5d25 Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Mon, 23 Sep 2024 03:30:30 +0200 Subject: [PATCH] Rector fixes --- composer.json | 18 ++++++++++-------- library/Zend/Service/Amazon/Item.php | 25 +++++++++++++++++++++++++ library/Zend/Service/Flickr/Result.php | 5 +++++ 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index d9299bd3fa..d3b8486b04 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,14 @@ "symfony/polyfill-ctype": "^1.27", "symfony/polyfill-mbstring": "^1.26" }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3", + "php-parallel-lint/php-parallel-lint": "^1.3", + "phpunit/phpunit": "^7|^8|^9", + "rector/rector": "0.12.19 || ^1.2", + "yoast/phpunit-polyfills": "^2.0" + }, + "suggest": { "ext-mbstring": "Multibyte strings handling" }, @@ -27,20 +35,14 @@ "library/" ], "config": { - "bin-dir": "bin" + "bin-dir": "bin", + "sort-packages": true }, "extra": { "branch-alias": { "dev-master": "1.12.x-dev" } }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3", - "phpunit/phpunit": "^7|^8|^9", - "php-parallel-lint/php-parallel-lint": "^1.3", - "yoast/phpunit-polyfills": "2.0", - "rector/rector": "0.12.19 || ^1.2" - }, "archive": { "exclude": ["/demos", "/documentation", "/tests"] }, diff --git a/library/Zend/Service/Amazon/Item.php b/library/Zend/Service/Amazon/Item.php index 986c192bb5..58e5ba9355 100644 --- a/library/Zend/Service/Amazon/Item.php +++ b/library/Zend/Service/Amazon/Item.php @@ -32,6 +32,31 @@ #[AllowDynamicProperties] class Zend_Service_Amazon_Item { + /** + * @var string + */ + public $CurrencyCode; + + /** + * @var int + */ + public $Amount; + + /** + * @var string + */ + public $FormattedPrice; + + /** + * @var string + */ + public $tagName; + + /** + * @var \Zend_Service_Amazon_EditorialReview[] + */ + public $EditorialReviews; + /** * @var string */ diff --git a/library/Zend/Service/Flickr/Result.php b/library/Zend/Service/Flickr/Result.php index 2bedb2de7e..ee9eca032f 100644 --- a/library/Zend/Service/Flickr/Result.php +++ b/library/Zend/Service/Flickr/Result.php @@ -32,6 +32,11 @@ #[AllowDynamicProperties] class Zend_Service_Flickr_Result { + /** + * @var string + */ + public $name; + /** * The photo's Flickr ID. *