aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/TableCleanup.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2022-03-29 20:11:06 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2022-03-30 19:47:15 +0000
commit6caf78c2c8eb0b629effd29350879d0b5feb60e5 (patch)
tree66bee346941e501e565d8db47bc26375d4318581 /maintenance/TableCleanup.php
parent0bbb64d8b847e347861b56df95e292cbca8fabd1 (diff)
downloadmediawikicore-6caf78c2c8eb0b629effd29350879d0b5feb60e5.tar.gz
mediawikicore-6caf78c2c8eb0b629effd29350879d0b5feb60e5.zip
phan: Remove PhanPossiblyUndeclaredVariable suppression
Make phan stricter about conditional variable declaration Remaining false positive issues are suppressed. The suppression and the setting change can only be done together Bug: T259172 Change-Id: I1f200ac37df7448453688bf464a8250c97313e5d
Diffstat (limited to 'maintenance/TableCleanup.php')
-rw-r--r--maintenance/TableCleanup.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/maintenance/TableCleanup.php b/maintenance/TableCleanup.php
index eec1058c6129..53bc915c9e14 100644
--- a/maintenance/TableCleanup.php
+++ b/maintenance/TableCleanup.php
@@ -153,6 +153,7 @@ class TableCleanup extends Maintenance {
// of the string.
$nextCond = '';
foreach ( array_reverse( $index ) as $field ) {
+ // @phan-suppress-next-line PhanPossiblyUndeclaredVariable $res has at at least one item
$encValue = $dbr->addQuotes( $row->$field );
if ( $nextCond === '' ) {
$nextCond = "$field > $encValue";