Skip to content

Commit 76b7135

Browse files
authored
1 parent c8d3619 commit 76b7135

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
Php81\Array_\FirstClassCallableRector::class, # todo: TMP
137137
Php81\FuncCall\NullToStrictStringFuncCallArgRector::class, # todo: check later
138138
Strict\Empty_\DisallowedEmptyRuleFixerRector::class, # todo: TMP
139-
Transform\FuncCall\FuncCallToConstFetchRector::class, # todo: TMP
140139
TypeDeclaration\BooleanAnd\BinaryOpNullableToInstanceofRector::class, # todo: TMP
141140
TypeDeclaration\ClassMethod\ReturnNeverTypeRector::class,
142141
TypeDeclaration\Empty_\EmptyOnNullableObjectToInstanceOfRector::class, # todo: TMP

app/code/core/Mage/Core/Controller/Response/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function sendHeaders()
3232
return $this;
3333
}
3434

35-
if (str_starts_with(php_sapi_name(), 'cgi')) {
35+
if (str_starts_with(PHP_SAPI, 'cgi')) {
3636
$statusSent = false;
3737
foreach ($this->_headersRaw as $i => $header) {
3838
if (stripos($header, 'status:') === 0) {

app/code/core/Mage/Core/Model/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function run($params)
350350
}
351351

352352
// Finish the request explicitly, no output allowed beyond this point
353-
if (php_sapi_name() == 'fpm-fcgi' && function_exists('fastcgi_finish_request')) {
353+
if (PHP_SAPI == 'fpm-fcgi' && function_exists('fastcgi_finish_request')) {
354354
fastcgi_finish_request();
355355
} else {
356356
flush();

0 commit comments

Comments
 (0)