Skip to content

Commit

Permalink
Merge pull request #47 from tompoc/do_not_silent_errors
Browse files Browse the repository at this point in the history
Do not silent errors
  • Loading branch information
saimaz committed Mar 18, 2016
2 parents 7a5c71c + 65439be commit aeaba59
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Driver/EcbDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class EcbDriver implements CurrencyDriverInterface
public function getRates()
{
$rates = [];
$xml = @simplexml_load_file('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');
$xml = simplexml_load_file('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');
$data = $xml->xpath('//gesmes:Envelope/*[3]/*');
foreach ($data[0]->children() as $child) {
$code = (string)$child->attributes()->currency;
Expand Down
2 changes: 0 additions & 2 deletions Tests/app/config/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,3 @@ services:
class: ONGR\CurrencyExchangeBundle\Tests\FooSettingsProvider
tags:
- { name: ongr_currency_exchange.settings_provider, method: getFooSets } # method attribute is optional


0 comments on commit aeaba59

Please sign in to comment.