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
Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
[lhc/web/wiklou.git]
/
includes
/
libs
/
rdbms
/
database
/
DatabaseDomain.php
diff --git
a/includes/libs/rdbms/database/DatabaseDomain.php
b/includes/libs/rdbms/database/DatabaseDomain.php
index
ef6600b
..
602b15c
100644
(file)
--- a/
includes/libs/rdbms/database/DatabaseDomain.php
+++ b/
includes/libs/rdbms/database/DatabaseDomain.php
@@
-182,7
+182,7
@@
class DatabaseDomain {
for ( $i = 0; $i < $length; ++$i ) {
$char = $encoded[$i];
if ( $char === '?' ) {
- $nextChar =
isset( $encoded[$i + 1] ) ? $encoded[$i + 1] :
null;
+ $nextChar =
$encoded[$i + 1] ??
null;
if ( $nextChar === 'h' ) {
$decoded .= '-';
++$i;