We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
isSent()
areHeadersSent
1 parent c775b6c commit 3d00922Copy full SHA for 3d00922
1 file changed
src/Http.php
@@ -107,8 +107,7 @@ public static function getHeadersList(): array
107
*/
108
public static function setHeaders(string|array $headers): void
109
{
110
- // Header already sent
111
- if (static::isSent()) {
+ if (static::areHeadersSent()) {
112
throw new Exception('Headers were already sent.');
113
}
114
@@ -171,7 +170,7 @@ public static function getProtocol(): ?string
171
170
*
172
* @return bool TRUE if the headers were sent, FALSE if not.
173
174
- private static function isSent(): bool
+ private static function areHeadersSent(): bool
175
176
return headers_sent();
177
0 commit comments