Skip to content

Commit

Permalink
Merge pull request asgrim#61 from jpswade/patch-1
Browse files Browse the repository at this point in the history
Correct Exceptions
  • Loading branch information
asgrim authored Mar 30, 2020
2 parents 5bd5916 + cb0e5f1 commit ef7ca52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/OfxParser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function createOfx(SimpleXMLElement $xml)
*
* @param string $ofxFile A path that can be loaded with file_get_contents
* @return Ofx
* @throws \Exception
* @throws \InvalidArgumentException
*/
public function loadFromFile($ofxFile)
{
Expand All @@ -46,7 +46,6 @@ public function loadFromFile($ofxFile)
*
* @param string $ofxContent
* @return Ofx
* @throws \Exception
*/
public function loadFromString($ofxContent)
{
Expand Down Expand Up @@ -92,7 +91,7 @@ private function conditionallyAddNewlines($ofxContent)
* Load an XML string without PHP errors - throws exception instead
*
* @param string $xmlString
* @throws \Exception
* @throws \RuntimeException
* @return \SimpleXMLElement
*/
private function xmlLoadString($xmlString)
Expand Down

0 comments on commit ef7ca52

Please sign in to comment.