diff options
Diffstat (limited to 'includes/http')
-rw-r--r-- | includes/http/GuzzleHttpRequest.php | 2 | ||||
-rw-r--r-- | includes/http/HttpRequestFactory.php | 2 | ||||
-rw-r--r-- | includes/http/MWHttpRequest.php | 2 | ||||
-rw-r--r-- | includes/http/Telemetry.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/includes/http/GuzzleHttpRequest.php b/includes/http/GuzzleHttpRequest.php index d86dd6921363..f5c343877cf9 100644 --- a/includes/http/GuzzleHttpRequest.php +++ b/includes/http/GuzzleHttpRequest.php @@ -63,7 +63,7 @@ class GuzzleHttpRequest extends MWHttpRequest { * @throws Exception */ public function __construct( - $url, array $options = [], $caller = __METHOD__, Profiler $profiler = null + $url, array $options = [], $caller = __METHOD__, ?Profiler $profiler = null ) { parent::__construct( $url, $options, $caller, $profiler ); diff --git a/includes/http/HttpRequestFactory.php b/includes/http/HttpRequestFactory.php index ccb43d879669..b86a5876ef30 100644 --- a/includes/http/HttpRequestFactory.php +++ b/includes/http/HttpRequestFactory.php @@ -57,7 +57,7 @@ class HttpRequestFactory { public function __construct( ServiceOptions $options, LoggerInterface $logger, - Telemetry $telemetry = null + ?Telemetry $telemetry = null ) { $options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS ); $this->options = $options; diff --git a/includes/http/MWHttpRequest.php b/includes/http/MWHttpRequest.php index 51ee96cbd568..fff6355d11ec 100644 --- a/includes/http/MWHttpRequest.php +++ b/includes/http/MWHttpRequest.php @@ -120,7 +120,7 @@ abstract class MWHttpRequest implements LoggerAwareInterface { * @throws Exception */ public function __construct( - $url, array $options, $caller = __METHOD__, Profiler $profiler = null + $url, array $options, $caller = __METHOD__, ?Profiler $profiler = null ) { $this->urlUtils = MediaWikiServices::getInstance()->getUrlUtils(); if ( !array_key_exists( 'timeout', $options ) diff --git a/includes/http/Telemetry.php b/includes/http/Telemetry.php index 0e546e60800e..f4c80b44efa9 100644 --- a/includes/http/Telemetry.php +++ b/includes/http/Telemetry.php @@ -52,7 +52,7 @@ class Telemetry implements TelemetryHeadersInterface { /** * @param array $server Server and execution environment information, most likely the $_SERVER variable */ - public function __construct( array $server, bool $allowExternalReqID = null ) { + public function __construct( array $server, ?bool $allowExternalReqID = null ) { $this->server = $server; $this->allowExternalReqID = $allowExternalReqID; } |