Changeset 3252105
- Timestamp:
- 03/07/2025 10:51:19 AM (13 months ago)
- Location:
- stancer/trunk
- Files:
-
- 66 edited
-
LICENSE (modified) (1 diff)
-
includes/Controller/class-stancer-change-payment-method.php (modified) (1 diff)
-
includes/class-stancer-abstract-table.php (modified) (1 diff)
-
includes/class-stancer-api.php (modified) (1 diff)
-
includes/class-stancer-card.php (modified) (1 diff)
-
includes/class-stancer-config.php (modified) (1 diff)
-
includes/class-stancer-customer.php (modified) (1 diff)
-
includes/class-stancer-exception.php (modified) (1 diff)
-
includes/class-stancer-gateway-block-support.php (modified) (1 diff)
-
includes/class-stancer-gateway.php (modified) (1 diff)
-
includes/class-stancer-payment-builder.php (modified) (1 diff)
-
includes/class-stancer-payment.php (modified) (1 diff)
-
includes/class-stancer-subscription.php (modified) (1 diff)
-
includes/class-stancer.php (modified) (1 diff)
-
includes/subscriptions/class-stancer-renewal-builder.php (modified) (1 diff)
-
includes/traits/trait-stancer-payment-validator.php (modified) (1 diff)
-
includes/traits/trait-stancer-refunds.php (modified) (1 diff)
-
includes/traits/trait-stancer-subscription.php (modified) (1 diff)
-
languages/stancer-fr_FR.po (modified) (1 diff)
-
stancer.php (modified) (2 diffs)
-
subscription/change-payment-method.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
-
vendor-prefixer/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
vendor-prefixer/vendor/composer/installed.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Auth/Status.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Card.php (modified) (3 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Config.php (modified) (20 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Core/AbstractObject.php (modified) (19 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Core/Documentation/AddMethod.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Core/Documentation/AddProperty.php (modified) (2 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Core/Documentation/FormatProperty.php (modified) (2 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Customer.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Exceptions/Exception.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Exceptions/HttpException.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/Client.php (modified) (4 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/MessageTrait.php (modified) (6 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/Request.php (modified) (3 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/Response.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Http/Uri.php (modified) (7 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Payment.php (modified) (4 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Payment/Status.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Payout.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Payout/Details.php (modified) (2 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Payout/Details/Inner.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Payout/Status.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Refund.php (modified) (3 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Refund/Status.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Sepa.php (modified) (3 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Sepa/Check.php (modified) (2 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Sepa/Check/Status.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/Traits/AliasTrait.php (modified) (4 diffs)
-
vendor-prefixer/vendor/stancer/stancer/src/Traits/SearchTrait.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/Base.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/ConstructorPropertyPromotion.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/CurlHandler.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/MatchExpression.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/MixedType.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/NonCapturingCatch.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/ReturnTypeWithUnion.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/StaticReturnType.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/UnionType.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_1/Enumeration.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_1/FinalClassConstants.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_1/NewInInitializers.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_3/TypedClassConstants.php (modified) (1 diff)
-
vendor-prefixer/vendor/stancer/stancer/src/polyfill.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
stancer/trunk/LICENSE
r3033292 r3252105 1 Copyright (c) 2023-202 4Stancer / Iliad 781 Copyright (c) 2023-2025 Stancer / Iliad 78 2 2 3 3 Permission is hereby granted, free of charge, to any person obtaining a copy -
stancer/trunk/includes/Controller/class-stancer-change-payment-method.php
r3158277 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-abstract-table.php
r3033292 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-api.php
r3125364 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-card.php
r3054608 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-config.php
r3104631 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-customer.php
r3054608 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-exception.php
r3158216 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-gateway-block-support.php
r3158277 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-gateway.php
r3158270 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-payment-builder.php
r3127996 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-payment.php
r3126050 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer-subscription.php
r3033292 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/class-stancer.php
r3158277 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/subscriptions/class-stancer-renewal-builder.php
r3127996 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/traits/trait-stancer-payment-validator.php
r3127996 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/traits/trait-stancer-refunds.php
r3104631 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/includes/traits/trait-stancer-subscription.php
r3126050 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/languages/stancer-fr_FR.po
r3158289 r3252105 6 6 "Report-Msgid-Bugs-To: https://gitlab.com/wearestancer/cms/woocommerce/-/" 7 7 "issues\n" 8 "POT-Creation-Date: 2024-0 1-03 15:12+0000\n"8 "POT-Creation-Date: 2024-05-20 07:47+0000\n" 9 9 "PO-Revision-Date: 2024-06-27 14:57+0200\n" 10 10 "Last-Translator: Sebastien <sderen@stancer.com>\n" -
stancer/trunk/stancer.php
r3158289 r3252105 5 5 * @package stancer 6 6 * @license MIT 7 * @copyright 2023-202 4Stancer / Iliad 787 * @copyright 2023-2025 Stancer / Iliad 78 8 8 * 9 9 * @wordpress-plugin … … 28 28 */ 29 29 define( 'STANCER_WC_VERSION', '1.3.0' ); 30 define( 'STANCER_ASSETS_VERSION', '17 27360780701' );30 define( 'STANCER_ASSETS_VERSION', '1741344596529' ); 31 31 define( 'STANCER_FILE', __FILE__ ); 32 32 define( 'STANCER_DIRECTORY_PATH', plugin_dir_path( STANCER_FILE ) ); -
stancer/trunk/subscription/change-payment-method.php
r3075815 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/uninstall.php
r3033292 r3252105 7 7 * @link https://www.stancer.com/ 8 8 * @license MIT 9 * @copyright 2023-202 4Stancer / Iliad 789 * @copyright 2023-2025 Stancer / Iliad 78 10 10 * 11 11 * @package stancer -
stancer/trunk/vendor-prefixer/vendor/composer/InstalledVersions.php
r3056912 r3252105 31 31 private static $installed; 32 32 /** 33 * @var bool 34 */ 35 private static $installedIsLocalDir; 36 /** 33 37 * @var bool|null 34 38 */ … … 270 274 self::$installed = $data; 271 275 self::$installedByVendor = array(); 276 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 277 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 278 // so we have to assume it does not, and that may result in duplicate data being returned when listing 279 // all installed packages for example 280 self::$installedIsLocalDir = \false; 272 281 } 273 282 /** … … 281 290 } 282 291 $installed = array(); 292 $copiedLocalDir = \false; 283 293 if (self::$canGetVendors) { 294 $selfDir = \strtr(__DIR__, '\\', '/'); 284 295 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 296 $vendorDir = \strtr($vendorDir, '\\', '/'); 285 297 if (isset(self::$installedByVendor[$vendorDir])) { 286 298 $installed[] = self::$installedByVendor[$vendorDir]; … … 288 300 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 289 301 $required = (require $vendorDir . '/composer/installed.php'); 290 $installed[] = self::$installedByVendor[$vendorDir] = $required; 291 if (null === self::$installed && \strtr($vendorDir . '/composer', '\\', '/') === \strtr(__DIR__, '\\', '/')) { 292 self::$installed = $installed[\count($installed) - 1]; 302 self::$installedByVendor[$vendorDir] = $required; 303 $installed[] = $required; 304 if (self::$installed === null && $vendorDir . '/composer' === $selfDir) { 305 self::$installed = $required; 306 self::$installedIsLocalDir = \true; 293 307 } 308 } 309 if (self::$installedIsLocalDir && $vendorDir . '/composer' === $selfDir) { 310 $copiedLocalDir = \true; 294 311 } 295 312 } … … 306 323 } 307 324 } 308 if (self::$installed !== array() ) {325 if (self::$installed !== array() && !$copiedLocalDir) { 309 326 $installed[] = self::$installed; 310 327 } -
stancer/trunk/vendor-prefixer/vendor/composer/installed.php
r3158289 r3252105 3 3 namespace Stancer\Scoped\Isolated; 4 4 5 return array('root' => array('name' => 'stancer/cms-woocommerce', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9 cd731d47f1933d089f896a1aad87955ce003191', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('psr/http-message' => array('pretty_version' => '1.1', 'version' => '1.1.0.0', 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/cms-woocommerce' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9cd731d47f1933d089f896a1aad87955ce003191', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/stancer' => array('pretty_version' => 'v1.1.3', 'version' => '1.1.3.0', 'reference' => 'ebd111ebdce45aedbf9a892d47009098b99a99d0', 'type' => 'library', 'install_path' => __DIR__ . '/../stancer/stancer', 'aliases' => array(), 'dev_requirement' => \false)));5 return array('root' => array('name' => 'stancer/cms-woocommerce', 'pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9dd1c7d552ab0cd35640cf97c11ff45b38d99d1c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => \false), 'versions' => array('psr/http-message' => array('pretty_version' => '1.1', 'version' => '1.1.0.0', 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/http-message', 'aliases' => array(), 'dev_requirement' => \false), 'psr/log' => array('pretty_version' => '1.1.4', 'version' => '1.1.4.0', 'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11', 'type' => 'library', 'install_path' => __DIR__ . '/../psr/log', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/cms-woocommerce' => array('pretty_version' => 'dev-main', 'version' => 'dev-main', 'reference' => '9dd1c7d552ab0cd35640cf97c11ff45b38d99d1c', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => \false), 'stancer/stancer' => array('pretty_version' => 'v1.1.3', 'version' => '1.1.3.0', 'reference' => 'ebd111ebdce45aedbf9a892d47009098b99a99d0', 'type' => 'library', 'install_path' => __DIR__ . '/../stancer/stancer', 'aliases' => array(), 'dev_requirement' => \false))); -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Auth/Status.php
r3056912 r3252105 8 8 * List of a auth status. 9 9 */ 10 #[ Stancer\WillChange\PHP8_1\Enumeration]10 #[\Stancer\WillChange\PHP8_1\Enumeration] 11 11 class Status 12 12 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Card.php
r3056912 r3252105 110 110 * @return string|null 111 111 */ 112 #[ Stancer\Core\Documentation\FormatProperty(description: 'Formatted brand name', restricted:true)]112 #[\Stancer\Core\Documentation\FormatProperty(description: 'Formatted brand name', restricted: \true)] 113 113 public function getBrandName() : ?string 114 114 { … … 189 189 * @return boolean 190 190 */ 191 #[ Stancer\Core\Documentation\FormatProperty(fullDescription: 'Is the card tokenized?', type: self::BOOLEAN, value:false)]191 #[\Stancer\Core\Documentation\FormatProperty(fullDescription: 'Is the card tokenized?', type: self::BOOLEAN, value: \false)] 192 192 public function getTokenize() : bool 193 193 { … … 254 254 * @throws Stancer\Exceptions\InvalidCardNumberException When the card number is invalid. 255 255 */ 256 public function setNumber( 257 #[\SensitiveParameter] 258 string $number 259 ) : self 256 public function setNumber(#[\SensitiveParameter] string $number) : self 260 257 { 261 258 $spaceless = \preg_replace('/\\s/', '', $number); -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Config.php
r3056912 r3252105 85 85 { 86 86 use Stancer\Traits\AliasTrait; 87 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]87 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 88 88 public const LIVE_MODE = 'live'; 89 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]89 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 90 90 public const TEST_MODE = 'test'; 91 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]91 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 92 92 public const VERSION = '1.1.3'; 93 93 /** @var non-empty-array<string|null>[] */ … … 126 126 * @param string[] $keys Authentication keys. 127 127 */ 128 public function __construct( 129 #[\SensitiveParameter] 130 array $keys 131 ) 128 public function __construct(#[\SensitiveParameter] array $keys) 132 129 { 133 130 $this->setKeys($keys); … … 161 158 * @return string 162 159 */ 163 #[ Stancer\Core\Documentation\FormatProperty(description: 'HTTP "basic" authentication header\'s value', nullable: false, restricted:true)]160 #[\Stancer\Core\Documentation\FormatProperty(description: 'HTTP "basic" authentication header\'s value', nullable: \false, restricted: \true)] 164 161 public function getBasicAuthHeader() : string 165 162 { … … 171 168 * @return Stancer\Core\Request\Call[] 172 169 */ 173 #[ Stancer\Core\Documentation\FormatProperty(description: 'Request list recorded on debug mode', list: true, restricted:true, type: Stancer\Core\Request\Call::class)]170 #[\Stancer\Core\Documentation\FormatProperty(description: 'Request list recorded on debug mode', list: \true, restricted: \true, type: Stancer\Core\Request\Call::class)] 174 171 public function getCalls() : array 175 172 { … … 181 178 * @return boolean 182 179 */ 183 #[ Stancer\Core\Documentation\FormatProperty(description: 'Debug mode', nullable:false, type: Stancer\Core\AbstractObject::BOOLEAN)]180 #[\Stancer\Core\Documentation\FormatProperty(description: 'Debug mode', nullable: \false, type: Stancer\Core\AbstractObject::BOOLEAN)] 184 181 public function getDebug() : bool 185 182 { … … 194 191 * @return DateTimeZone|null 195 192 */ 196 #[ Stancer\Core\Documentation\FormatProperty(description: 'Default time zone', type: DateTimeZone::class)]193 #[\Stancer\Core\Documentation\FormatProperty(description: 'Default time zone', type: DateTimeZone::class)] 197 194 public function getDefaultTimeZone() : ?DateTimeZone 198 195 { … … 204 201 * @return string 205 202 */ 206 #[ Stancer\Core\Documentation\FormatProperty(description: 'Default user agent', nullable: false, restricted:true)]203 #[\Stancer\Core\Documentation\FormatProperty(description: 'Default user agent', nullable: \false, restricted: \true)] 207 204 public function getDefaultUserAgent() : string 208 205 { … … 240 237 * @throws Stancer\Exceptions\InvalidArgumentException When no previous instance was stored (use `Config::init()`). 241 238 */ 242 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]239 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 243 240 public static function getGlobal() : self 244 241 { … … 255 252 * @return string 256 253 */ 257 #[ Stancer\Core\Documentation\FormatProperty(description: 'API host', nullable:false)]254 #[\Stancer\Core\Documentation\FormatProperty(description: 'API host', nullable: \false)] 258 255 public function getHost() : string 259 256 { … … 269 266 * @return Stancer\Http\Client|GuzzleHttp\ClientInterface 270 267 */ 271 #[ Stancer\Core\Documentation\FormatProperty(description: 'HTTP client instance', nullable:false, type: [Stancer\Http\Client::class, GuzzleHttp\ClientInterface::class])]272 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\ReturnTypeWithUnion]268 #[\Stancer\Core\Documentation\FormatProperty(description: 'HTTP client instance', nullable: \false, type: [Stancer\Http\Client::class, GuzzleHttp\ClientInterface::class])] 269 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\ReturnTypeWithUnion] 273 270 public function getHttpClient() 274 271 { … … 285 282 * @return Psr\Log\LoggerInterface 286 283 */ 287 #[ Stancer\Core\Documentation\FormatProperty(description: 'Logger handler', nullable:false, type: Psr\Log\LoggerInterface::class)]284 #[\Stancer\Core\Documentation\FormatProperty(description: 'Logger handler', nullable: \false, type: Psr\Log\LoggerInterface::class)] 288 285 public function getLogger() : Psr\Log\LoggerInterface 289 286 { … … 304 301 * @return string 305 302 */ 306 #[ Stancer\Core\Documentation\FormatProperty(description: 'API mode (test or live)', value: 'test')]303 #[\Stancer\Core\Documentation\FormatProperty(description: 'API mode (test or live)', value: 'test')] 307 304 public function getMode() : string 308 305 { … … 318 315 * @return integer 319 316 */ 320 #[ Stancer\Core\Documentation\FormatProperty(description: 'API port', type: 'integer')]317 #[\Stancer\Core\Documentation\FormatProperty(description: 'API port', type: 'integer')] 321 318 public function getPort() : int 322 319 { … … 329 326 * @throws Stancer\Exceptions\MissingApiKeyException When no key is found. 330 327 */ 331 #[ Stancer\Core\Documentation\FormatProperty(description: 'Public API key', nullable: false, restricted:true)]328 #[\Stancer\Core\Documentation\FormatProperty(description: 'Public API key', nullable: \false, restricted: \true)] 332 329 public function getPublicKey() : string 333 330 { … … 350 347 * @throws Stancer\Exceptions\MissingApiKeyException When no key is found. 351 348 */ 352 #[ Stancer\Core\Documentation\FormatProperty(description: 'Secret API key', nullable: false, restricted:true)]349 #[\Stancer\Core\Documentation\FormatProperty(description: 'Secret API key', nullable: \false, restricted: \true)] 353 350 public function getSecretKey() : string 354 351 { … … 372 369 * @return integer 373 370 */ 374 #[ Stancer\Core\Documentation\FormatProperty(description: 'API timeout', type: 'integer', value: 0)]371 #[\Stancer\Core\Documentation\FormatProperty(description: 'API timeout', type: 'integer', value: 0)] 375 372 public function getTimeout() : int 376 373 { … … 384 381 * @return string 385 382 */ 386 #[ Stancer\Core\Documentation\FormatProperty(description: 'API URI', nullable: false, restricted:true)]383 #[\Stancer\Core\Documentation\FormatProperty(description: 'API URI', nullable: \false, restricted: \true)] 387 384 public function getUri() : string 388 385 { … … 401 398 * @return integer 402 399 */ 403 #[ Stancer\Core\Documentation\FormatProperty(description: 'API version', nullable:false, type: 'integer')]400 #[\Stancer\Core\Documentation\FormatProperty(description: 'API version', nullable: \false, type: 'integer')] 404 401 public function getVersion() : int 405 402 { … … 413 410 * @return self 414 411 */ 415 public static function init( 416 #[\SensitiveParameter] 417 array $keys 418 ) : self 412 public static function init(#[\SensitiveParameter] array $keys) : self 419 413 { 420 414 $obj = new static($keys); … … 559 553 * @return $this 560 554 */ 561 public function setKeys( 562 #[\SensitiveParameter] 563 $keys 564 ) : self 555 public function setKeys(#[\SensitiveParameter] $keys) : self 565 556 { 566 557 if (!\is_array($keys)) { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Core/AbstractObject.php
r3056912 r3252105 50 50 * @throws Stancer\Exceptions\BadPropertyAccessException When calling an unknown property. 51 51 */ 52 #[ Stancer\Core\Documentation\AddProperty('created', description: 'Creation date', restricted:true, type: DateTimeImmutable::class)]52 #[\Stancer\Core\Documentation\AddProperty('created', description: 'Creation date', restricted: \true, type: DateTimeImmutable::class)] 53 53 abstract class AbstractObject implements JsonSerializable 54 54 { 55 55 use Stancer\Traits\AliasTrait; 56 #[ Stancer\WillChange\PHP8_1\FinalClassConstants]57 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]56 #[\Stancer\WillChange\PHP8_1\FinalClassConstants] 57 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 58 58 public const BOOLEAN = 'boolean'; 59 #[ Stancer\WillChange\PHP8_1\FinalClassConstants]60 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]59 #[\Stancer\WillChange\PHP8_1\FinalClassConstants] 60 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 61 61 public const FLOAT = 'float'; 62 #[ Stancer\WillChange\PHP8_1\FinalClassConstants]63 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]62 #[\Stancer\WillChange\PHP8_1\FinalClassConstants] 63 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 64 64 public const INTEGER = 'integer'; 65 #[ Stancer\WillChange\PHP8_1\FinalClassConstants]66 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]65 #[\Stancer\WillChange\PHP8_1\FinalClassConstants] 66 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 67 67 public const STRING = 'string'; 68 68 /** @var array<string, mixed> */ 69 69 protected $apiData; 70 70 /** @var string */ 71 #[ Stancer\WillChange\PHP8_1\FinalClassConstants]72 #[ Stancer\WillChange\PHP8_3\TypedClassConstants]71 #[\Stancer\WillChange\PHP8_1\FinalClassConstants] 72 #[\Stancer\WillChange\PHP8_3\TypedClassConstants] 73 73 protected $endpoint = ''; 74 74 /** … … 131 131 * @throws Stancer\Exceptions\BadMethodCallException When an unhandled method is called. 132 132 */ 133 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\MixedType]133 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 134 134 public function __call(string $method, array $arguments) 135 135 { … … 177 177 * @return static 178 178 */ 179 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]179 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 180 180 public static function create(array $data) : self 181 181 { … … 194 194 * @throws Stancer\Exceptions\InvalidArgumentException If used on properties not declared as list. 195 195 */ 196 #[ Stancer\WillChange\PHP8_0\MixedType]197 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]196 #[\Stancer\WillChange\PHP8_0\MixedType] 197 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 198 198 protected function dataModelAdder(string $property, $value) : self 199 199 { … … 224 224 * @throws Stancer\Exceptions\InvalidArgumentException When asking an unknown property. 225 225 */ 226 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\MixedType]226 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 227 227 protected function dataModelGetter(string $property, bool $autoPopulate = \true) 228 228 { … … 266 266 * @throws Stancer\Exceptions\InvalidArgumentException When the value do not match expected pattern. 267 267 */ 268 #[ Stancer\WillChange\PHP8_0\MixedType]269 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]268 #[\Stancer\WillChange\PHP8_0\MixedType] 269 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 270 270 protected function dataModelSetter(string $property, $value) : self 271 271 { … … 312 312 * @throws Stancer\Exceptions\InvalidArgumentException When configuration is missing. 313 313 */ 314 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]314 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 315 315 public function delete() : self 316 316 { … … 327 327 * @return mixed 328 328 */ 329 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\MixedType]329 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 330 330 public function get(string $attr = null) 331 331 { … … 344 344 * @return DateTimeImmutable|null 345 345 */ 346 #[ Stancer\Core\Documentation\FormatProperty(description: 'Creation date', restricted:true, type: DateTimeImmutable::class)]346 #[\Stancer\Core\Documentation\FormatProperty(description: 'Creation date', restricted: \true, type: DateTimeImmutable::class)] 347 347 public function getCreationDate() : ?DateTimeImmutable 348 348 { … … 354 354 * @return string 355 355 */ 356 #[ Stancer\Core\Documentation\FormatProperty(description: 'API endpoint', nullable: false, restricted:true)]356 #[\Stancer\Core\Documentation\FormatProperty(description: 'API endpoint', nullable: \false, restricted: \true)] 357 357 public function getEndpoint() : string 358 358 { … … 364 364 * @return string 365 365 */ 366 #[ Stancer\Core\Documentation\FormatProperty(description: 'Entity name', nullable: false, restricted:true)]366 #[\Stancer\Core\Documentation\FormatProperty(description: 'Entity name', nullable: \false, restricted: \true)] 367 367 public function getEntityName() : string 368 368 { … … 376 376 * @return string|null 377 377 */ 378 #[ Stancer\Core\Documentation\FormatProperty(description: 'Object ID', restricted:true)]378 #[\Stancer\Core\Documentation\FormatProperty(description: 'Object ID', restricted: \true)] 379 379 public function getId() : ?string 380 380 { … … 408 408 * @return string 409 409 */ 410 #[ Stancer\Core\Documentation\FormatProperty(description: 'Entity resource location', nullable: false, restricted:true)]410 #[\Stancer\Core\Documentation\FormatProperty(description: 'Entity resource location', nullable: \false, restricted: \true)] 411 411 public function getUri() : string 412 412 { … … 426 426 * @return $this 427 427 */ 428 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]428 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 429 429 public function hydrate(array $data) : self 430 430 { … … 575 575 * @return string|integer|boolean|null|array<string, mixed> 576 576 */ 577 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\MixedType]577 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 578 578 public function jsonSerialize() 579 579 { … … 625 625 * @return $this 626 626 */ 627 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]627 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 628 628 public function populate() : self 629 629 { … … 658 658 * @return static 659 659 */ 660 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]660 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 661 661 public static function retrieve(string $id) : self 662 662 { … … 671 671 * @throws Stancer\Exceptions\InvalidArgumentException When all requirement are not provided. 672 672 */ 673 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]673 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 674 674 public function send() : self 675 675 { … … 758 758 * @throws Stancer\Exceptions\InvalidArgumentException When the value do not match expected pattern. 759 759 */ 760 #[ Stancer\WillChange\PHP8_0\MixedType]761 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]760 #[\Stancer\WillChange\PHP8_0\MixedType] 761 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 762 762 protected function validateDataModel(string $property, $value) : self 763 763 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Core/Documentation/AddMethod.php
r3056912 r3252105 8 8 * Attribute to add documentation data on a method. 9 9 */ 10 #[ Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]10 #[\Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] 11 11 class AddMethod 12 12 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Core/Documentation/AddProperty.php
r3056912 r3252105 9 9 * Attribute to add documentation data on a property. 10 10 */ 11 #[ Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]11 #[\Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] 12 12 class AddProperty 13 13 { … … 28 28 * @param mixed $value Property default value. 29 29 */ 30 #[ Stancer\WillChange\PHP8_0\UnionType]31 #[ Stancer\WillChange\PHP8_0\MixedType]30 #[\Stancer\WillChange\PHP8_0\UnionType] 31 #[\Stancer\WillChange\PHP8_0\MixedType] 32 32 public function __construct(protected string $name, protected ?string $description = null, protected ?string $fullDescription = null, protected $getter = null, protected ?bool $list = null, protected ?bool $nullable = null, protected $property = null, protected ?bool $required = null, protected ?bool $restricted = null, protected $setter = null, protected $type = null, protected $value = null) 33 33 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Core/Documentation/FormatProperty.php
r3056912 r3252105 9 9 * Attribute to add documentation data on a property or a method. 10 10 */ 11 #[ Attribute(Attribute::TARGET_METHOD)]11 #[\Attribute(Attribute::TARGET_METHOD)] 12 12 class FormatProperty 13 13 { … … 27 27 * @param mixed $value Property default value. 28 28 */ 29 #[ Stancer\WillChange\PHP8_0\UnionType]30 #[ Stancer\WillChange\PHP8_0\MixedType]29 #[\Stancer\WillChange\PHP8_0\UnionType] 30 #[\Stancer\WillChange\PHP8_0\MixedType] 31 31 public function __construct(protected ?string $description = null, protected ?string $fullDescription = null, protected $getter = null, protected ?bool $list = null, protected ?bool $nullable = null, protected $property = null, protected ?bool $required = null, protected ?bool $restricted = null, protected $setter = null, protected $type = null, protected $value = null) 32 32 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Customer.php
r3056912 r3252105 65 65 * or a phone number. 66 66 */ 67 #[ Override]67 #[\Override] 68 68 public function send() : Stancer\Core\AbstractObject 69 69 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Exceptions/Exception.php
r3056912 r3252105 35 35 * @phpstan-param CreateExceptionParameters $params 36 36 */ 37 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]37 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 38 38 public static function create(array $params = []) : self 39 39 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Exceptions/HttpException.php
r3056912 r3252105 46 46 * @phpstan-param CreateExceptionParameters $params 47 47 */ 48 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]48 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 49 49 public static function create(array $params = []) : Exception 50 50 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Client.php
r3056912 r3252105 12 12 { 13 13 /** @var resource */ 14 #[ Stancer\WillChange\PHP8_0\CurlHandler]14 #[\Stancer\WillChange\PHP8_0\CurlHandler] 15 15 protected $curl; 16 16 /** … … 46 46 * @return resource 47 47 */ 48 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\CurlHandler]48 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\CurlHandler] 49 49 public function getCurlResource() 50 50 { … … 89 89 * @return integer 90 90 */ 91 #[ Stancer\WillChange\PHP8_0\CurlHandler]91 #[\Stancer\WillChange\PHP8_0\CurlHandler] 92 92 public function parseHeaderLine($curl, string $line) : int 93 93 { … … 133 133 * Request options to apply. 134 134 */ 135 #[ Stancer\WillChange\PHP8_0\MatchExpression]135 #[\Stancer\WillChange\PHP8_0\MatchExpression] 136 136 public function request(string $method, string $uri, array $options = []) : Psr\Http\Message\ResponseInterface 137 137 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/MessageTrait.php
r3056912 r3252105 152 152 * @return static 153 153 */ 154 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]154 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 155 155 public function withAddedHeader($name, $value) : Psr\Http\Message\MessageInterface 156 156 { … … 164 164 * @return static 165 165 */ 166 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]166 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 167 167 public function withBody(Psr\Http\Message\StreamInterface $body) : Psr\Http\Message\MessageInterface 168 168 { … … 178 178 * @return static 179 179 */ 180 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]180 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 181 181 public function withHeader($name, $value) : Psr\Http\Message\MessageInterface 182 182 { … … 190 190 * @return static 191 191 */ 192 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]192 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 193 193 public function withModifiedBody($in = '', $out = '') : Psr\Http\Message\MessageInterface 194 194 { … … 205 205 * @return static 206 206 */ 207 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]207 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 208 208 public function withoutHeader($name) : Psr\Http\Message\MessageInterface 209 209 { … … 217 217 * @return static 218 218 */ 219 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]219 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 220 220 public function withProtocolVersion($version) : Psr\Http\Message\MessageInterface 221 221 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Request.php
r3056912 r3252105 131 131 * @return static 132 132 */ 133 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]133 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 134 134 public function withMethod($method) : self 135 135 { … … 146 146 * @return static 147 147 */ 148 #[ Stancer\WillChange\PHP8_0\MixedType]149 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]148 #[\Stancer\WillChange\PHP8_0\MixedType] 149 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 150 150 public function withRequestTarget($requestTarget) : self 151 151 { … … 190 190 * @throws Stancer\Exceptions\BadMethodCallException For every call. 191 191 */ 192 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]192 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 193 193 public function withUri(Psr\Http\Message\UriInterface $uri, $preserveHost = \false) : self 194 194 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Response.php
r3056912 r3252105 97 97 * @return static 98 98 */ 99 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]99 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 100 100 public function withStatus($code, $reasonPhrase = '') : self 101 101 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Http/Uri.php
r3056912 r3252105 362 362 * @return static A new instance with the specified fragment. 363 363 */ 364 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]364 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 365 365 public function withFragment($fragment) : self 366 366 { … … 380 380 * @return static A new instance with the specified host. 381 381 */ 382 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]382 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 383 383 public function withHost($host) : self 384 384 { … … 408 408 * @return static A new instance with the specified path. 409 409 */ 410 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]410 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 411 411 public function withPath($path) : self 412 412 { … … 431 431 * @return static A new instance with the specified port. 432 432 */ 433 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]433 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 434 434 public function withPort($port) : self 435 435 { … … 452 452 * @return static A new instance with the specified query string. 453 453 */ 454 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]454 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 455 455 public function withQuery($query) : self 456 456 { … … 473 473 * @return static A new instance with the specified scheme. 474 474 */ 475 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]475 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 476 476 public function withScheme($scheme) : self 477 477 { … … 494 494 * @return static A new instance with the specified user information. 495 495 */ 496 #[\ReturnTypeWillChange, Stancer\WillChange\PHP8_0\StaticReturnType]496 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\StaticReturnType] 497 497 public function withUserInfo($user, $password = null) : self 498 498 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payment.php
r3056912 r3252105 138 138 * @property-read string $uri Entity resource location. 139 139 */ 140 #[ Stancer\Core\Documentation\AddMethod('addRefunds', ['Stancer\Refund $refund'], '$this', stan:true)]141 #[ Stancer\Core\Documentation\AddMethod('list', ['SearchFilters $terms'], 'static Generator<static>')]142 #[ Stancer\Core\Documentation\AddProperty('auth', property: ['type' => [Stancer\Auth::class, 'bool', 'string']], setter: ['type' => [Stancer\Auth::class, 'bool', 'string']])]143 #[ Stancer\Core\Documentation\AddProperty('refunds', restricted:true)]140 #[\Stancer\Core\Documentation\AddMethod('addRefunds', ['Stancer\\Refund $refund'], '$this', stan: \true)] 141 #[\Stancer\Core\Documentation\AddMethod('list', ['SearchFilters $terms'], 'static Generator<static>')] 142 #[\Stancer\Core\Documentation\AddProperty('auth', property: ['type' => [Stancer\Auth::class, 'bool', 'string']], setter: ['type' => [Stancer\Auth::class, 'bool', 'string']])] 143 #[\Stancer\Core\Documentation\AddProperty('refunds', restricted: \true)] 144 144 class Payment extends Stancer\Core\AbstractObject 145 145 { … … 152 152 * @phpstan-var array<string, DataModel> 153 153 */ 154 #[ Stancer\WillChange\PHP8_1\Enumeration('Currency will change')]155 #[ Stancer\WillChange\PHP8_1\Enumeration('Methods allowed will change')]154 #[\Stancer\WillChange\PHP8_1\Enumeration('Currency will change')] 155 #[\Stancer\WillChange\PHP8_1\Enumeration('Methods allowed will change')] 156 156 protected $dataModel = ['amount' => ['desc' => 'Transaction amount', 'required' => \true, 'type' => self::INTEGER], 'auth' => ['desc' => 'Auth object, must be set for 3-D Secure card payments', 'type' => Stancer\Auth::class], 'capture' => ['desc' => 'Capture immediately the payment', 'type' => self::BOOLEAN], 'card' => ['desc' => 'Card object', 'type' => Stancer\Card::class], 'country' => ['type' => self::STRING], 'currency' => ['desc' => 'Processed currency', 'allowedValues' => ['aud', 'cad', 'chf', 'dkk', 'eur', 'gbp', 'jpy', 'nok', 'pln', 'sek', 'usd'], 'coerce' => Stancer\Core\Type\Helper::TO_LOWER, 'required' => \true, 'type' => self::STRING], 'customer' => ['desc' => 'Customer object', 'type' => Stancer\Customer::class], 'dateBank' => ['desc' => 'Delivery date of the funds traded by the bank', 'restricted' => \true, 'type' => DateTimeImmutable::class], 'description' => ['desc' => 'Payment description', 'size' => ['min' => 3, 'max' => 64], 'type' => self::STRING], 'device' => ['desc' => 'Customer\'s device object', 'type' => Stancer\Device::class], 'method' => ['desc' => 'Payment method used', 'restricted' => \true, 'type' => self::STRING], 'methodsAllowed' => ['desc' => 'List of payment methods allowed for this payment', 'allowedValues' => ['card', 'sepa'], 'list' => \true, 'type' => self::STRING], 'orderId' => ['desc' => 'Order identifier', 'size' => ['min' => 1, 'max' => 36], 'type' => self::STRING], 'refunds' => ['desc' => 'Array of refund objects', 'exportable' => \false, 'list' => \true, 'type' => Stancer\Refund::class], 'response' => ['desc' => 'Response of the bank processing', 'restricted' => \true, 'size' => ['min' => 2, 'max' => 4], 'type' => self::STRING], 'responseAuthor' => ['restricted' => \true, 'size' => ['fixed' => 6], 'type' => self::STRING], 'returnUrl' => ['desc' => 'URL to redirect back your customer after processing the payment', 'size' => ['min' => 1, 'max' => 2048], 'type' => self::STRING], 'sepa' => ['desc' => 'SEPA object', 'type' => Stancer\Sepa::class], 'status' => ['desc' => 'Status of the payment', 'type' => self::STRING], 'uniqueId' => ['desc' => 'Unicity key', 'size' => ['min' => 1, 'max' => 36], 'type' => self::STRING]]; 157 157 /** … … 226 226 * @phpstan-return $this 227 227 */ 228 #[ Override]228 #[\Override] 229 229 public function delete() : Stancer\Core\AbstractObject 230 230 { … … 460 460 * @throws Stancer\Exceptions\InvalidExpirationException When card's expiration is invalid. 461 461 */ 462 #[ Override]462 #[\Override] 463 463 public function send() : Stancer\Core\AbstractObject 464 464 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payment/Status.php
r3056912 r3252105 8 8 * List of a payment status. 9 9 */ 10 #[ Stancer\WillChange\PHP8_1\Enumeration]10 #[\Stancer\WillChange\PHP8_1\Enumeration] 11 11 class Status 12 12 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payout.php
r3056912 r3252105 88 88 * @phpstan-param PayoutResponse $data 89 89 */ 90 #[ Override]90 #[\Override] 91 91 public function hydrate(array $data) : self 92 92 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payout/Details.php
r3056912 r3252105 46 46 * @property-read string $uri Entity resource location. 47 47 */ 48 #[ Stancer\Core\Documentation\AddMethod('disputes', ['array $terms'], '\Generator<Stancer\Dispute>', description: 'List every disputes in the payout.')]49 #[ Stancer\Core\Documentation\AddMethod('listDisputes', ['array $terms'], '\Generator<Stancer\Dispute>', description: 'List every disputes in the payout.')]50 #[ Stancer\Core\Documentation\AddMethod('listDisputes', ['SearchFilters $terms'], '\Generator<Stancer\Dispute>', description: 'List every disputes in the payout.', stan:true)]51 #[ Stancer\Core\Documentation\AddMethod('payments', ['array $terms'], '\Generator<Stancer\Payment>', description: 'List every payments in the payout.')]52 #[ Stancer\Core\Documentation\AddMethod('listPayments', ['array $terms'], '\Generator<Stancer\Payment>', description: 'List every payments in the payout.')]53 #[ Stancer\Core\Documentation\AddMethod('listPayments', ['SearchFilters $terms'], '\Generator<Stancer\Payment>', description: 'List every payments in the payout.', stan:true)]54 #[ Stancer\Core\Documentation\AddMethod('refunds', ['array $terms'], '\Generator<Stancer\Refund>', description: 'List every refunds in the payout.')]55 #[ Stancer\Core\Documentation\AddMethod('listRefunds', ['array $terms'], '\Generator<Stancer\Refund>', description: 'List every refunds in the payout.')]56 #[ Stancer\Core\Documentation\AddMethod('listRefunds', ['SearchFilters $terms'], '\Generator<Stancer\Refund>', description: 'List every refunds in the payout.', stan:true)]48 #[\Stancer\Core\Documentation\AddMethod('disputes', ['array $terms'], '\\Generator<Stancer\\Dispute>', description: 'List every disputes in the payout.')] 49 #[\Stancer\Core\Documentation\AddMethod('listDisputes', ['array $terms'], '\\Generator<Stancer\\Dispute>', description: 'List every disputes in the payout.')] 50 #[\Stancer\Core\Documentation\AddMethod('listDisputes', ['SearchFilters $terms'], '\\Generator<Stancer\\Dispute>', description: 'List every disputes in the payout.', stan: \true)] 51 #[\Stancer\Core\Documentation\AddMethod('payments', ['array $terms'], '\\Generator<Stancer\\Payment>', description: 'List every payments in the payout.')] 52 #[\Stancer\Core\Documentation\AddMethod('listPayments', ['array $terms'], '\\Generator<Stancer\\Payment>', description: 'List every payments in the payout.')] 53 #[\Stancer\Core\Documentation\AddMethod('listPayments', ['SearchFilters $terms'], '\\Generator<Stancer\\Payment>', description: 'List every payments in the payout.', stan: \true)] 54 #[\Stancer\Core\Documentation\AddMethod('refunds', ['array $terms'], '\\Generator<Stancer\\Refund>', description: 'List every refunds in the payout.')] 55 #[\Stancer\Core\Documentation\AddMethod('listRefunds', ['array $terms'], '\\Generator<Stancer\\Refund>', description: 'List every refunds in the payout.')] 56 #[\Stancer\Core\Documentation\AddMethod('listRefunds', ['SearchFilters $terms'], '\\Generator<Stancer\\Refund>', description: 'List every refunds in the payout.', stan: \true)] 57 57 class Details extends Stancer\Core\AbstractObject 58 58 { … … 72 72 * @throws Stancer\Exceptions\BadMethodCallException When an unhandled method is called. 73 73 */ 74 #[ Override]75 #[ ReturnTypeWillChange,Stancer\WillChange\PHP8_0\MixedType]74 #[\Override] 75 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 76 76 public function __call(string $method, array $arguments) 77 77 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payout/Details/Inner.php
r3056912 r3252105 81 81 * @return string 82 82 */ 83 #[ Stancer\Core\Documentation\FormatProperty(description: 'Current resource location', nullable: false, restricted:true, type: self::STRING)]83 #[\Stancer\Core\Documentation\FormatProperty(description: 'Current resource location', nullable: \false, restricted: \true, type: self::STRING)] 84 84 public function getUri() : string 85 85 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Payout/Status.php
r3056912 r3252105 8 8 * List of a payout status. 9 9 */ 10 #[ Stancer\WillChange\PHP8_1\Enumeration]10 #[\Stancer\WillChange\PHP8_1\Enumeration] 11 11 class Status 12 12 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Refund.php
r3056912 r3252105 53 53 * @property-read string $uri Entity resource location. 54 54 */ 55 #[ Stancer\Core\Documentation\AddMethod('setPayment', ['Stancer\Payment $payment'], '$this', stan:true)]55 #[\Stancer\Core\Documentation\AddMethod('setPayment', ['Stancer\\Payment $payment'], '$this', stan: \true)] 56 56 class Refund extends Stancer\Core\AbstractObject 57 57 { … … 72 72 * @return boolean 73 73 */ 74 #[ Override]74 #[\Override] 75 75 public function isModified() : bool 76 76 { … … 85 85 * @throws Stancer\Exceptions\InvalidArgumentException When all requirement are not provided. 86 86 */ 87 #[ Override]87 #[\Override] 88 88 public function send() : Stancer\Core\AbstractObject 89 89 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Refund/Status.php
r3056912 r3252105 8 8 * List of a refund status. 9 9 */ 10 #[ Stancer\WillChange\PHP8_1\Enumeration]10 #[\Stancer\WillChange\PHP8_1\Enumeration] 11 11 class Status 12 12 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Sepa.php
r3056912 r3252105 83 83 * @return Stancer\Sepa\Check|null 84 84 */ 85 #[ Stancer\WillChange\PHP8_0\NonCapturingCatch]85 #[\Stancer\WillChange\PHP8_0\NonCapturingCatch] 86 86 public function getCheck() : ?Stancer\Sepa\Check 87 87 { … … 104 104 * @return string|null 105 105 */ 106 #[ Stancer\Core\Documentation\FormatProperty(description: 'Formatted IBAN', required: true, restricted:true)]106 #[\Stancer\Core\Documentation\FormatProperty(description: 'Formatted IBAN', required: \true, restricted: \true)] 107 107 public function getFormattedIban() : ?string 108 108 { … … 137 137 * @throws Stancer\Exceptions\InvalidIbanException When IBAN is invalid. 138 138 */ 139 public function setIban( 140 #[\SensitiveParameter] 141 string $iban 142 ) : self 139 public function setIban(#[\SensitiveParameter] string $iban) : self 143 140 { 144 141 $iban = \str_replace(' ', '', $iban); -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Sepa/Check.php
r3056912 r3252105 77 77 * @return string|integer|boolean|null|array<string, mixed> 78 78 */ 79 #[ Override]80 #[ ReturnTypeWillChange,Stancer\WillChange\PHP8_0\MixedType]79 #[\Override] 80 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 81 81 public function jsonSerialize() 82 82 { … … 96 96 * @throws Stancer\Exceptions\InvalidArgumentException When all requirement are not provided. 97 97 */ 98 #[ Override]98 #[\Override] 99 99 public function send() : Stancer\Core\AbstractObject 100 100 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Sepa/Check/Status.php
r3056912 r3252105 8 8 * List of a sepa check status. 9 9 */ 10 #[ Stancer\WillChange\PHP8_1\Enumeration]10 #[\Stancer\WillChange\PHP8_1\Enumeration] 11 11 class Status 12 12 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Traits/AliasTrait.php
r3056912 r3252105 19 19 * @throws Stancer\Exceptions\BadMethodCallException When an unhandled method is called. 20 20 */ 21 #[ ReturnTypeWillChange,Stancer\WillChange\PHP8_0\MixedType]21 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 22 22 public function __call(string $method, array $arguments) 23 23 { … … 43 43 * @throws Stancer\Exceptions\BadMethodCallException When an unhandled method is called. 44 44 */ 45 #[ ReturnTypeWillChange,Stancer\WillChange\PHP8_0\MixedType]45 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 46 46 public static function __callStatic(string $method, array $arguments) 47 47 { … … 59 59 * @return mixed 60 60 */ 61 #[ ReturnTypeWillChange,Stancer\WillChange\PHP8_0\MixedType]61 #[\ReturnTypeWillChange, \Stancer\WillChange\PHP8_0\MixedType] 62 62 public function __get(string $property) 63 63 { … … 83 83 * @throws Stancer\Exceptions\BadPropertyAccessException When an unhandled property is called. 84 84 */ 85 #[ Stancer\WillChange\PHP8_0\MixedType]85 #[\Stancer\WillChange\PHP8_0\MixedType] 86 86 public function __set(string $property, $value) : void 87 87 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/Traits/SearchTrait.php
r3056912 r3252105 167 167 * @phpstan-param class-string<Stancer\Exceptions\Exception> $exception Exception to throw. 168 168 */ 169 #[ Stancer\WillChange\PHP8_0\MixedType]169 #[\Stancer\WillChange\PHP8_0\MixedType] 170 170 protected static function validateDateRelativeFilter($value, string $name, string $exception, bool $allowPeriod = \false) : int 171 171 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/Base.php
r3056912 r3252105 7 7 * Base class for migration attributes. 8 8 */ 9 #[ PHP8_0\ConstructorPropertyPromotion]9 #[\Stancer\WillChange\PHP8_0\ConstructorPropertyPromotion] 10 10 class Base 11 11 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/ConstructorPropertyPromotion.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/en/language.oop5.decon.php#language.oop5.decon.constructor.promotion 11 11 */ 12 #[ Attribute(Attribute::TARGET_CLASS)]12 #[\Attribute(Attribute::TARGET_CLASS)] 13 13 final class ConstructorPropertyPromotion extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/CurlHandler.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/fr/class.curlhandle.php 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class CurlHandler extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/MatchExpression.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/en/control-structures.match.php 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class MatchExpression extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/MixedType.php
r3056912 r3252105 10 10 * @see https://wiki.php.net/rfc/mixed_type_v2 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class MixedType extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/NonCapturingCatch.php
r3056912 r3252105 10 10 * @see https://wiki.php.net/rfc/non-capturing_catches 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class NonCapturingCatch extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/ReturnTypeWithUnion.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.union 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class ReturnTypeWithUnion extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/StaticReturnType.php
r3056912 r3252105 10 10 * @see https://wiki.php.net/rfc/static_return_type 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class StaticReturnType extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_0/UnionType.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.union 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class UnionType extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_1/Enumeration.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/en/language.enumerations.php 11 11 */ 12 #[ Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)]12 #[\Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_ALL)] 13 13 final class Enumeration extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_1/FinalClassConstants.php
r3056912 r3252105 10 10 * @see https://www.php.net/manual/en/language.oop5.final.php#language.oop5.final.example.php81 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class FinalClassConstants extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_1/NewInInitializers.php
r3056912 r3252105 10 10 * @see https://wiki.php.net/rfc/new_in_initializers 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class NewInInitializers extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/WillChange/PHP8_3/TypedClassConstants.php
r3056912 r3252105 10 10 * @see https://wiki.php.net/rfc/typed_class_constants 11 11 */ 12 #[ Attribute]12 #[\Attribute] 13 13 final class TypedClassConstants extends Base 14 14 { -
stancer/trunk/vendor-prefixer/vendor/stancer/stancer/src/polyfill.php
r3056912 r3252105 15 15 // Attributes are available since PHP8, before they will be seen as comments. 16 16 if (!\class_exists('ReturnTypeWillChange')) { 17 #[ Attribute(Attribute::TARGET_METHOD)]17 #[\Attribute(\Attribute::TARGET_METHOD)] 18 18 final class ReturnTypeWillChange 19 19 { … … 21 21 } 22 22 if (!\class_exists('Stancer\\Scoped\\Isolated\\SensitiveParameter')) { 23 #[ Attribute(Attribute::TARGET_PARAMETER)]23 #[\Attribute(\Attribute::TARGET_PARAMETER)] 24 24 final class SensitiveParameter 25 25 { … … 27 27 } 28 28 if (!\class_exists('Stancer\\Scoped\\Isolated\\Override')) { 29 #[ Attribute(Attribute::TARGET_METHOD)]29 #[\Attribute(\Attribute::TARGET_METHOD)] 30 30 final class Override 31 31 {
Note: See TracChangeset
for help on using the changeset viewer.