Use ?? instead of default value in getRawVal()

Bug: T376245
Change-Id: I068a9976e49014eee3587f0f3fc192f467d28ad0
This commit is contained in:
Fomafix 2024-10-02 10:35:28 +00:00
parent e22d8dd0ac
commit da8b651cfa

View file

@ -89,7 +89,7 @@ class Hooks implements
*/ */
private function hasRelatedArticles( Skin $skin ): bool { private function hasRelatedArticles( Skin $skin ): bool {
$title = $skin->getTitle(); $title = $skin->getTitle();
$action = $skin->getRequest()->getRawVal( 'action', 'view' ); $action = $skin->getRequest()->getRawVal( 'action' ) ?? 'view';
return $title->inNamespace( NS_MAIN ) && return $title->inNamespace( NS_MAIN ) &&
// T120735 // T120735
$action === 'view' && $action === 'view' &&