Skip to content

Commit

Permalink
Merge pull request #21 from lucaxvi/patch-1
Browse files Browse the repository at this point in the history
getSeason always returns NULL
  • Loading branch information
jetwitaussi authored Jan 17, 2020
2 parents aec0a92 + 54fcd7a commit 30f4676
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions PHT/Xml/World/League/Senior.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,23 +144,13 @@ public function getCurrentMatchRound()
return $this->getXml()->getElementsByTagName('CurrentMatchRound')->item(0)->nodeValue;
}

/**
* Return season number
*
* @return integer
*/
public function getSeason()
{
return $this->getXml()->getElementsByTagName('Season')->item(0)->nodeValue;
}

/**
* Get current season details
*
* @return \PHT\Xml\World\League\Season\Senior
*/
public function getCurrentSeason()
{
return Wrapper\World\Season::senior($this->getId(), $this->getSeason());
return Wrapper\World\Season::senior($this->getId(), null);
}
}

0 comments on commit 30f4676

Please sign in to comment.