Skip to content

Commit 1be891c

Browse files
authored
Merge pull request #1245 from todeveni/patch-1
Fix nullable type declaration
1 parent b57e728 commit 1be891c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

classes/Visualizer/Module/Chart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,11 @@ public function getCharts() {
375375
*
376376
* @access private
377377
*
378-
* @param WP_Post $chart The chart object.
378+
* @param WP_Post|null $chart The chart object.
379379
*
380380
* @return array The array of chart data.
381381
*/
382-
private function _getChartArray( WP_Post $chart = null ) {
382+
private function _getChartArray( ?WP_Post $chart = null ) {
383383
if ( is_null( $chart ) ) {
384384
$chart = $this->_chart;
385385
}

0 commit comments

Comments
 (0)