Skip to content

Commit 6046a57

Browse files
committed
Removed redundant check for the existence of InstalledVersions::getAllRawData()
This method always exists as per `composer/composer:^2.0.14`
1 parent 8676fe5 commit 6046a57

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/ProxyManagerTest/Generator/Util/IdentifierSuffixerTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use PHPUnit\Framework\TestCase;
99
use ProxyManager\Generator\Util\IdentifierSuffixer;
1010

11-
use function is_callable;
1211
use function serialize;
1312
use function sha1;
1413
use function strlen;
@@ -38,11 +37,7 @@ public function testGeneratesSuffixedIdentifiers(string $name): void
3837
*/
3938
public function testGeneratedSuffixDependsOnPackageInstalledVersions(string $name): void
4039
{
41-
$hashedData = sha1(serialize(
42-
is_callable([InstalledVersions::class, 'getAllRawData'])
43-
? InstalledVersions::getAllRawData()
44-
: InstalledVersions::getRawData()
45-
));
40+
$hashedData = sha1(serialize(InstalledVersions::getAllRawData()));
4641

4742
self::assertStringEndsWith(
4843
substr(sha1($name . $hashedData), 0, 5),

0 commit comments

Comments
 (0)