: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<div class="tab-pane" id="teams" role="tabpanel">
<ul class="nav nav-tabs nav-fill" role="tablist">
<li class="nav-item active">
<a class="nav-link " data-toggle="tab" href="#team-<?php echo $match_player_list->playersInMatch->homeTeam->teamShortName ?>" role="tab">
<?php echo $match_player_list->playersInMatch->homeTeam->teamName ?></a>
<a class="nav-link" data-toggle="tab" href="#team-<?php echo $match_player_list->playersInMatch->awayTeam->teamShortName ?>" role="tab">
<?php echo $match_player_list->playersInMatch->awayTeam->teamName ?></a>
<div class="tab-content">
<div class="tab-pane active" id="team-<?php echo $match_player_list->playersInMatch->homeTeam->teamShortName ?>" role="tabpanel">
foreach ( $match_player_list->playersInMatch->homeTeam->players as $player) {
if( isset( $player->imageURL ) ){
$player_image = $player->imageURL;
$player_image = 'http://www.cricket.com.au/-/media/Players/Men/male-silhouette.ashx';
<a href="<?php echo home_url() ?>/player-stats/player/<?php echo $player->playerId; ?>">
<div class="col-xs-4 col-md-2">
<img class="profile-img" src="<?php echo $player_image ?>?h=120"
alt="<?php echo $player->fullName ?>">
<h3 class="lead" align='center'>
<?php echo $player->fullName ?>
<h3 class="lead" align='center'>
if (isset( $player->playerType ) && $player->playerType == 'Bowler') {
}elseif (isset( $player->playerType ) && $player->playerType == 'Batter') {
}else if( isset( $player->playerType ) && $player->playerType == 'Allrounder' ){
}else if( isset( $player->playerType ) && $player->playerType == 'Wicketkeeper' ){
<div class="tab-pane" id="team-<?php echo $match_player_list->playersInMatch->awayTeam->teamShortName ?>" role="tabpanel">
foreach ( $match_player_list->playersInMatch->awayTeam->players as $player) {
if( isset( $player->imageURL ) ){
$player_image = $player->imageURL;
$player_image = 'http://www.cricket.com.au/-/media/Players/Men/male-silhouette.ashx';
<a href="<?php echo home_url() ?>/player-stats/player/<?php echo $player->playerId; ?>">
<div class="col-xs-4 col-md-2">
<img class="profile-img" src="<?php echo $player_image ?>?h=120"
alt="<?php echo $player->fullName ?>">
<h3 class="lead" align='center'>
<?php echo $player->fullName ?>
<h3 class="lead" align='center'>
if (isset( $player->playerType ) && $player->playerType == 'Bowler') {
}elseif (isset( $player->playerType ) && $player->playerType == 'Batter') {
}else if( isset( $player->playerType ) && $player->playerType == 'Allrounder' ){
}else if( isset( $player->playerType ) && $player->playerType == 'Wicketkeeper' ){