We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a05eaf commit 5000cf7Copy full SHA for 5000cf7
woocommerce/payment-gateway/Dynamic_Props.php
@@ -42,7 +42,7 @@ class Dynamic_Props {
42
* @since x.x.x
43
* @var \WeakMap<object, \stdClass>|null
44
*/
45
- private static ?\WeakMap $map = null;
+ private static ?\WeakMap $map = null; // phpcs:ignore PHPCompatibility.Classes.NewClasses.weakmapFound -- conditionally used for PHP 8.0+
46
47
/**
48
* Sets a property on the order object.
@@ -184,6 +184,7 @@ private static function use_weak_map(): bool {
184
185
private static function init_weak_map(): void {
186
if ( null === self::$map ) {
187
+ // phpcs:ignore PHPCompatibility.Classes.NewClasses.weakmapFound -- conditionally used for PHP 8.0+
188
self::$map = new \WeakMap();
189
}
190
0 commit comments