Skip to content

Commit

Permalink
Fix function_exists() check in SapiEmitterTrait
Browse files Browse the repository at this point in the history
This is an *obvious fix* for a copy and paste mistake.

Bug introduced in f41b72d.
  • Loading branch information
TimWolla committed Aug 5, 2021
1 parent 38e7973 commit 3c663dc
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 3c663dc

Please sign in to comment.