We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b57e728 commit 1be891cCopy full SHA for 1be891c
1 file changed
classes/Visualizer/Module/Chart.php
@@ -375,11 +375,11 @@ public function getCharts() {
375
*
376
* @access private
377
378
- * @param WP_Post $chart The chart object.
+ * @param WP_Post|null $chart The chart object.
379
380
* @return array The array of chart data.
381
*/
382
- private function _getChartArray( WP_Post $chart = null ) {
+ private function _getChartArray( ?WP_Post $chart = null ) {
383
if ( is_null( $chart ) ) {
384
$chart = $this->_chart;
385
}
0 commit comments