Skip to content

Commit

Permalink
Fix autoloading issue
Browse files Browse the repository at this point in the history
If you trigger `class_exists` by default autoloader will be started which causes the following exception `Warning: include(MplusQAPIException.php): failed to open stream: No such file or directory`. Only check if the class already exists but never try to autoload it will fix this issue.
  • Loading branch information
bramstroker authored Sep 5, 2018
1 parent 94ad871 commit 29a2b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6557,7 +6557,7 @@ public function convertButtonLayoutRequest($terminal)

//------------------------------------------------------------------------------

if ( ! class_exists('MplusQAPIException')) {
if ( ! class_exists('MplusQAPIException', false)) {
class MplusQAPIException extends Exception
{

Expand Down

0 comments on commit 29a2b12

Please sign in to comment.