Skip to content

Commit cb977ca

Browse files
cs278isfedorov
authored andcommitted
Neither ob_get_clean() or ob_get_flush() are pure
Both functions have the side effect of ending the current output buffer. Whilst the latter also writes to the output stream.
1 parent c15deb5 commit cb977ca

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

standard/standard_8.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ function ob_end_clean(): bool {}
244244
* @link https://php.net/manual/en/function.ob-get-flush.php
245245
* @return string|false the output buffer or false if no buffering is active.
246246
*/
247-
#[Pure(true)]
248247
function ob_get_flush(): string|false {}
249248

250249
/**
@@ -253,7 +252,6 @@ function ob_get_flush(): string|false {}
253252
* @return string|false the contents of the output buffer and end output buffering.
254253
* If output buffering isn't active then false is returned.
255254
*/
256-
#[Pure(true)]
257255
function ob_get_clean(): string|false {}
258256

259257
/**

0 commit comments

Comments
 (0)