Skip to content

Commit 9f54b33

Browse files
ArshidArshid
authored andcommitted
Replace with http_get_last_response_headers() call
1 parent d1626c1 commit 9f54b33

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

config/set/php85.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Rector\Php85\Rector\ArrayDimFetch\ArrayFirstLastRector;
1111
use Rector\Php85\Rector\ClassMethod\NullDebugInfoReturnRector;
1212
use Rector\Php85\Rector\Const_\DeprecatedAnnotationToDeprecatedAttributeRector;
13+
use Rector\Php85\Rector\Expression\ReplaceHttpResponseHeaderRector;
1314
use Rector\Php85\Rector\FuncCall\ArrayKeyExistsNullToEmptyStringRector;
1415
use Rector\Php85\Rector\FuncCall\ChrArgModuloRector;
1516
use Rector\Php85\Rector\FuncCall\OrdSingleByteRector;
@@ -39,6 +40,7 @@
3940
ArrayKeyExistsNullToEmptyStringRector::class,
4041
ChrArgModuloRector::class,
4142
OrdSingleByteRector::class,
43+
ReplaceHttpResponseHeaderRector::class,
4244
]
4345
);
4446

rules/Php85/Rector/Expression/ReplaceHttpResponseHeaderRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function getNodeTypes(): array
6464
}
6565

6666
/**
67-
* @param Variable $node
67+
* @param Node $node
68+
* @return array<int, Node>
6869
*/
6970
public function refactor(Node $node): ?Array
7071
{

0 commit comments

Comments
 (0)