Skip to content

Commit

Permalink
Merge pull request #20 from TimWolla/patch-1
Browse files Browse the repository at this point in the history
Fix function_exists() check in SapiEmitterTrait
  • Loading branch information
boesing committed Aug 5, 2021
2 parents 38e7973 + 3c663dc commit 477b8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Emitter/SapiEmitterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private function headersSent(?string &$filename = null, ?int &$line = null): boo

private function header(string $headerName, bool $replace, int $statusCode): void
{
if (function_exists('Laminas\HttpHandlerRunner\Emitter\headers_sent')) {
if (function_exists('Laminas\HttpHandlerRunner\Emitter\header')) {
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
\Laminas\HttpHandlerRunner\Emitter\header($headerName, $replace, $statusCode);
return;
Expand Down

0 comments on commit 477b8fc

Please sign in to comment.