Can anyone tell me how to resolve the below error. "Deprecated Functionality: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated"
I am using magento 2.4.4 with php 8.1
Check full error message here https://prnt.sc/tT33R-c4w3SK.
Below is the line causing error.
fromDate = date("Y-m-d",strtotime(str_replace("/", "-".$hseHelper->getNewYearBallFromDate())));
$toDate = date("Y-m-d",strtotime(str_replace("/", "-", $hseHelper->getNewYearBallToDate())));