Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Automatically add datetime in samples, if not set in php.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Patel committed Dec 22, 2015
1 parent 6d1ac54 commit a67de1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
use PayPal\Auth\OAuthTokenCredential;
use PayPal\Rest\ApiContext;

// Suppress DateTime warnings, if not set already
date_default_timezone_set(@date_default_timezone_get());

// Adding Error Reporting for understanding errors properly
error_reporting(E_ALL);
ini_set('display_errors', '1');

Expand Down

0 comments on commit a67de1a

Please sign in to comment.