Skip to content

Commit bbc7021

Browse files
committed
Replace deprecated method in ServerRequestFactoryTest
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent b6101dc commit bbc7021

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

psalm-baseline.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17581,9 +17581,6 @@
1758117581
</MixedInferredReturnType>
1758217582
</file>
1758317583
<file src="test/classes/Http/Factory/ServerRequestFactoryTest.php">
17584-
<DeprecatedMethod>
17585-
<code>setMethods</code>
17586-
</DeprecatedMethod>
1758717584
<InvalidConstantAssignmentValue>
1758817585
<code>IMPLEMENTATION_CLASSES = [
1758917586
'slim/psr7' =&gt; [

test/classes/Http/Factory/ServerRequestFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function testCreateServerRequestFromGlobals(): void
128128
$_SERVER['HTTP_HOST'] = 'phpmyadmin.local';
129129

130130
$creator = $this->getMockBuilder(ServerRequestFactory::class)
131-
->setMethods(['getallheaders'])
131+
->onlyMethods(['getallheaders'])
132132
->getMock();
133133

134134
$creator

0 commit comments

Comments
 (0)