phan: Suppress error on Vector master blocking commits

Change-Id: Ib864f4c901db2b589a0f71228154487f9128b0bc
This commit is contained in:
Jon Robson 2022-10-06 17:23:00 -07:00 committed by Jdlrobson
parent 21a63b7c42
commit 508d5fc548
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ class Hooks implements
}
// Promote watch link from actions to views and add an icon
if ( $key !== null ) {
// The second check to isset is pointless but shuts up phan.
if ( $key !== null && isset( $content_navigation['actions'][ $key ] ) ) {
$content_navigation['views'][$key] = $content_navigation['actions'][$key];
unset( $content_navigation['actions'][$key] );
}