Simplify PHP by using ?? and ?:
[lhc/web/wiklou.git] / includes / Storage / RevisionStore.php
index 12bee1e..a184986 100644 (file)
@@ -1071,7 +1071,7 @@ class RevisionStore
                                if ( !property_exists( $row, 'old_flags' ) ) {
                                        throw new InvalidArgumentException( 'old_flags was not set in $row' );
                                }
-                               $blobFlags = ( $row->old_flags === null ) ? '' : $row->old_flags;
+                               $blobFlags = $row->old_flags ?? '';
                        }
 
                        $mainSlotRow->slot_revision_id = intval( $row->rev_id );