| @@ -262,9 +262,9 @@ | ||
| 262 | 262 | JText::script('VBO_STICKYN_CUSTOMURI'); |
| 263 | 263 | JText::script('VBO_WIDGETS_CONFRMELEM'); |
| 264 | 264 | } |
| 265 | 265 | |
| 266 | - public function render(VBOMultitaskData $data = null) | |
| 266 | + public function render(?VBOMultitaskData $data = null) | |
| 267 | 267 | { |
| 268 | 268 | // increase widget's instance counter |
| 269 | 269 | static::$instance_counter++; |
| 270 | 270 | |
| @@ -680,13 +680,13 @@ | ||
| 680 | 680 | * settings have been loaded, and if AJAX + multitask rendering is detected. |
| 681 | 681 | * It's assumed that the AJAX rendering of a multitask widget takes place one |
| 682 | 682 | * second before the AJAX event that updates the multitask map to push the widget. |
| 683 | 683 | * |
| 684 | - * @param VBOMultitaskData $data the data object injected to the widget. | |
| 684 | + * @param ?VBOMultitaskData $data the data object injected to the widget. | |
| 685 | 685 | * |
| 686 | 686 | * @return bool|int false on failure, guessed settings index otherwise. |
| 687 | 687 | */ |
| 688 | - protected function guessMultitaskStickyInstance(VBOMultitaskData $data = null) | |
| 688 | + protected function guessMultitaskStickyInstance(?VBOMultitaskData $data = null) | |
| 689 | 689 | { |
| 690 | 690 | if (!is_array($this->widgetSettings) || !count($this->widgetSettings)) { |
| 691 | 691 | // nothing to guess if this widget has got no saved settings |
| 692 | 692 | return false; |