Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion library/Graphite/Graphing/MetricsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct(MetricsDataSource $dataSource)
$this->dataSource = $dataSource;
}

public function from($target, array $fields = null)
public function from($target, ?array $fields = null)
{
if ($fields !== null) {
throw new InvalidArgumentException('Fields are not applicable to this kind of query');
Expand Down
2 changes: 1 addition & 1 deletion library/Graphite/Util/TimeRangePickerTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static function getAllRangeParameters()
*
* @return UrlParams The copy
*/
public static function copyAllRangeParameters(UrlParams $copy = null, UrlParams $origin = null)
public static function copyAllRangeParameters(?UrlParams $copy = null, ?UrlParams $origin = null)
{
if ($origin === null) {
$origin = Url::fromRequest()->getParams();
Expand Down
4 changes: 2 additions & 2 deletions library/Graphite/Web/Controller/TimeRangePickerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ trait TimeRangePickerTrait
/**
* Process the given request using the forms
*
* @param Request $request The request to be processed
* @param ?Request $request The request to be processed
*
* @return Request The request supposed to be processed
*/
protected function handleTimeRangePickerRequest(Request $request = null)
protected function handleTimeRangePickerRequest(?Request $request = null)
{
$this->getTimeRangePickerCommonForm()->handleRequest($request);
return $this->getTimeRangePickerCustomForm()->handleRequest($request);
Expand Down
4 changes: 2 additions & 2 deletions library/Graphite/Web/Widget/Graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ public function __construct($object)
/**
* Process the given request using this widget
*
* @param Request $request The request to be processed
* @param ?Request $request The request to be processed
*
* @return $this
*/
public function handleRequest(Request $request = null)
public function handleRequest(?Request $request = null)
{
if ($request === null) {
$request = Icinga::app()->getRequest();
Expand Down
Loading