Skip to content

Commit 02f64f7

Browse files
jonas.kraskaboesing
authored andcommitted
remove deprecated static callables from tests
1 parent df45692 commit 02f64f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/GenericMapTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,6 @@ public function testWillJoinValuesWithSeperator(): void
11051105
public function testWillExchangeKeys(array $initial, callable $keyGenerator, array $expected): void
11061106
{
11071107
$map = new GenericMap($initial);
1108-
/** @psalm-suppress PossiblyInvalidArgument Might be a psalm bug */
11091108
$exchanged = $map->keyExchange($keyGenerator);
11101109
self::assertEquals($expected, $exchanged->toNativeArray());
11111110
}

tests/GenericOrderedListTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public function testCanConvertToMap(): void
479479
$object2,
480480
]);
481481

482-
$mapped = $list->toMap(static function (GenericObject $object): string {
482+
$mapped = $list->toMap(function (GenericObject $object): string {
483483
$hash = spl_object_hash($object);
484484
Assert::stringNotEmpty($hash);
485485

@@ -719,7 +719,7 @@ public function testToMapConversionErrorsOnIntegerishKeys(): void
719719
{
720720
$this->expectException(InvalidArgumentException::class);
721721
$list = new GenericOrderedList([1, 2, 3]);
722-
$list->toMap(static function (int $value): string {
722+
$list->toMap(function (int $value): string {
723723
return (string) $value;
724724
});
725725
}

0 commit comments

Comments
 (0)