Skip to content

Commit

Permalink
throw exception if PHP version not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioMurga committed May 22, 2014
1 parent 2badef9 commit 0702c08
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@
=== 1.9.6 2014-05-12

* Return empty Conekta_Object instead of empty array in Util.php

=== 1.9.7 2014-05-22

* Throw an exception if PHP version is not supported.
13 changes: 0 additions & 13 deletions CHANGELOG~

This file was deleted.

3 changes: 3 additions & 0 deletions lib/Conekta.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
if (!function_exists('mb_detect_encoding')) {
throw new Exception('Conekta needs the Multibyte String PHP extension.');
}
if (!function_exists('get_called_class')) {
throw new Exception('Conekta needs to be run on PHP >= 5.3.0.');
}
require(dirname(__FILE__) . '/Conekta/Conekta.php');
require(dirname(__FILE__) . '/Conekta/Util.php');
require(dirname(__FILE__) . '/Conekta/Requestor.php');
Expand Down
2 changes: 1 addition & 1 deletion lib/Conekta/Conekta.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ abstract class Conekta
public static $apiKey;
public static $apiBase = 'https://api.conekta.io';
public static $apiVersion = '0.3.0';
const VERSION = '1.9.6';
const VERSION = '1.9.7';

public static function setApiKey($apiKey)
{
Expand Down

0 comments on commit 0702c08

Please sign in to comment.