Skip to content

Commit

Permalink
modified test/syntax.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Jan 9, 2018
1 parent 4efa4ef commit 9283510
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions php/test/syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
echo "- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code\n";
echo "- https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#derived-exchange-classes\n";

function on_error ($errno, $message, $file, $line) {
$message = "$message in $file on line $line";
throw new ErrorException ($message, $errno);
}

set_error_handler ('on_error');

include_once 'ccxt.php';

foreach (\ccxt\Exchange::$exchanges as $id) {
Expand Down

0 comments on commit 9283510

Please sign in to comment.