Skip to content

Commit

Permalink
Remove unnecessary qualifiers in root namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Apr 2, 2024
1 parent bbeaff6 commit e979958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WeakMap.php
Expand Up @@ -4,7 +4,7 @@

use WeakmapPolyfill\CycleWithDestructor;

if (\PHP_MAJOR_VERSION === 7) {
if (PHP_MAJOR_VERSION === 7) {
/**
* A polyfill for the upcoming WeakMap implementation in PHP 8, based on WeakReference in PHP 7.4.
* The polyfill aims to be 100% compatible with the native WeakMap implementation, feature-wise.
Expand Down Expand Up @@ -45,7 +45,7 @@ final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
private const HOUSEKEEPING_THRESHOLD = 10;

/**
* @var array<int, \WeakReference<WeakMap<object, mixed>>>
* @var array<int, WeakReference<WeakMap<object, mixed>>>
*/
private static array $housekeepingInstances = [];

Expand Down Expand Up @@ -271,7 +271,7 @@ private function setupHousekeepingOnGcRun() : void
$setupDestructorFx();
}

self::$housekeepingInstances[spl_object_id($this)] = \WeakReference::create($this);
self::$housekeepingInstances[spl_object_id($this)] = WeakReference::create($this);
}
}
}

0 comments on commit e979958

Please sign in to comment.