Skip to content

Commit

Permalink
Remove usage of reserved Object keyword (#6)
Browse files Browse the repository at this point in the history
* Remove usage of reserved Object keyword

* Updating dependecies to support Nette 2.4 only
  • Loading branch information
PavelJurasek authored and Hajneej committed Jan 7, 2018
1 parent 5da116c commit c6d138d
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 43 deletions.
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm

matrix:
allow_failures:
- php: 7.0
- php: 7.2
- php: hhvm

before_script:
Expand All @@ -26,4 +25,4 @@ after_failure:
# Print *.actual content
- 'for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done'

sudo: false
sudo: false
35 changes: 7 additions & 28 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,16 @@
"issues": "https://github.com/MetisFW/PayPal/issues"
},
"require": {
"php": ">=5.3.0",
"ext-curl": "*",
"ext-json": "*",
"nette/di": "~2.3@dev",
"nette/application": "~2.3@dev",
"php": ">=5.6.0",
"nette/di": "^2.4",
"nette/application": "^2.4",
"paypal/rest-api-sdk-php": "1.5.*"
},
"require-dev": {
"nette/application": "~2.3@dev",
"nette/bootstrap": "~2.3@dev",
"nette/caching": "2.3@dev",
"nette/component-model": "~2.2@dev",
"nette/database": "~2.3@dev",
"nette/deprecated": "~2.3@dev",
"nette/di": "~2.3@dev",
"nette/finder": "~2.3@dev",
"nette/forms": "~2.3@dev",
"nette/http": "~2.3@dev",
"nette/mail": "~2.3@dev",
"nette/neon": "~2.3@dev",
"nette/php-generator": "~2.3@dev",
"nette/reflection": "~2.3@dev",
"nette/robot-loader": "~2.3@dev",
"nette/safe-stream": "~2.3@dev",
"nette/security": "~2.3@dev",
"nette/tokenizer": "~2.2@dev",
"nette/utils": "~2.3@dev",
"latte/latte": "~2.3@dev",
"tracy/tracy": "~2.3@dev",
"nette/tester": "@dev",
"mockery/mockery": "^0.9.4"
"nette/bootstrap": "^2.4@dev",
"nette/robot-loader": "^2.4@dev",
"nette/tester": "^1.7@dev",
"mockery/mockery": "^0.9@dev"
},
"autoload": {
"psr-0": {
Expand Down
6 changes: 4 additions & 2 deletions src/MetisFW/PayPal/Helpers/GaTracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
namespace MetisFW\PayPal\Helpers;

use Nette\Http\Url;
use Nette\Object;
use Nette\SmartObject;
use PayPal\Api\Payment;

class GaTracking extends Object {
class GaTracking {

use SmartObject;

private function __construct() {
// nothing
Expand Down
6 changes: 4 additions & 2 deletions src/MetisFW/PayPal/PayPalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace MetisFW\PayPal;

use Nette\Object;
use Nette\SmartObject;
use PayPal\Rest\ApiContext;

class PayPalContext extends Object {
class PayPalContext {

use SmartObject;

/** @var ApiContext */
private $apiContext;
Expand Down
6 changes: 4 additions & 2 deletions src/MetisFW/PayPal/Payment/BasePaymentOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use MetisFW\PayPal\PayPalContext;
use MetisFW\PayPal\PayPalException;
use Nette\InvalidArgumentException;
use Nette\Object;
use Nette\SmartObject;
use PayPal\Api\Payer;
use PayPal\Api\Payment;
use PayPal\Api\PaymentExecution;
Expand All @@ -16,7 +16,9 @@
use PayPal\Exception\PayPalInvalidCredentialException;
use PayPal\Exception\PayPalMissingCredentialException;

abstract class BasePaymentOperation extends Object implements PaymentOperation {
abstract class BasePaymentOperation implements PaymentOperation {

use SmartObject;

/** @var PayPalContext */
protected $context;
Expand Down
3 changes: 1 addition & 2 deletions tests/php.ini-travis
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extension=json.so
extension=curl.so
extension=openssl.so
extension=tokenizer.so
extension=tokenizer.so
3 changes: 1 addition & 2 deletions tests/php.ini-unix
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
extension=json.so
extension=curl.so
extension=openssl.so
extension=tokenizer.so
extension=tokenizer.so

0 comments on commit c6d138d

Please sign in to comment.