dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "WebStart: Avoid DB or uselang for nonwrite-api-promise-error message"
[lhc/web/wiklou.git]
/
tests
/
parser
/
ParserTestParserHook.php
diff --git
a/tests/parser/ParserTestParserHook.php
b/tests/parser/ParserTestParserHook.php
index
5995012
..
acc5cb1
100644
(file)
--- a/
tests/parser/ParserTestParserHook.php
+++ b/
tests/parser/ParserTestParserHook.php
@@
-49,11
+49,7
@@
class ParserTestParserHook {
&& $argv['action'] === 'flush' && $in === null
) {
// Clear the buffer, we probably don't need to
&& $argv['action'] === 'flush' && $in === null
) {
// Clear the buffer, we probably don't need to
- if ( isset( $parser->static_tag_buf ) ) {
- $tmp = $parser->static_tag_buf;
- } else {
- $tmp = '';
- }
+ $tmp = $parser->static_tag_buf ?? '';
$parser->static_tag_buf = null;
return $tmp;
} else { // wtf?
$parser->static_tag_buf = null;
return $tmp;
} else { // wtf?