diff options
Diffstat (limited to 'includes/gallery/ImageGalleryBase.php')
-rw-r--r-- | includes/gallery/ImageGalleryBase.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/gallery/ImageGalleryBase.php b/includes/gallery/ImageGalleryBase.php index 3d9aac2cacfe..9a2a2b4c87f8 100644 --- a/includes/gallery/ImageGalleryBase.php +++ b/includes/gallery/ImageGalleryBase.php @@ -120,7 +120,7 @@ abstract class ImageGalleryBase extends ContextSource { * @return ImageGalleryBase * @throws ImageGalleryClassNotFoundException */ - public static function factory( $mode = false, IContextSource $context = null ) { + public static function factory( $mode = false, ?IContextSource $context = null ) { self::loadModes(); if ( !$context ) { $context = RequestContext::getMainAndWarn( __METHOD__ ); @@ -169,7 +169,7 @@ abstract class ImageGalleryBase extends ContextSource { * @param string $mode * @param IContextSource|null $context */ - public function __construct( $mode = 'traditional', IContextSource $context = null ) { + public function __construct( $mode = 'traditional', ?IContextSource $context = null ) { if ( $context ) { $this->setContext( $context ); } |