From 7192f77828e618765018dc9f3fe782d50f6fa085 Mon Sep 17 00:00:00 2001 From: Nathan Bomshteyn Date: Sun, 13 Sep 2020 12:41:21 -0400 Subject: [PATCH] Laravel 8 support * laravel 8 support * drop support for php 7.2 --- .travis.yml | 1 - composer.json | 10 +++++----- phpunit.xml | 47 ++++++++++++++++++-------------------------- src/BuyableTrait.php | 2 ++ 4 files changed, 26 insertions(+), 34 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9a5988c..8370411 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: php php: - - 7.2 - 7.3 - 7.4 diff --git a/composer.json b/composer.json index 6e9cc95..603d4b5 100755 --- a/composer.json +++ b/composer.json @@ -17,14 +17,14 @@ } ], "require": { - "php": "^7.2", + "php": "^7.3", "ext-json": "*", - "illuminate/config": "^6.0|^7.0", - "illuminate/database": "^6.0|^7.0", - "illuminate/support": "^6.0|^7.0" + "illuminate/config": "^6.0|^7.0|^8.0", + "illuminate/database": "^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0" }, "require-dev": { - "orchestra/testbench": "^4.0|^5.0", + "orchestra/testbench": "^4.0|^5.0|^6.0", "phpunit/phpunit": "^8.0|^9.0" }, "autoload": { diff --git a/phpunit.xml b/phpunit.xml index 60dcd08..92e9166 100755 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,30 +1,21 @@ - - - - tests - - - - - src/ - - - - - - - - - - + + + + src/ + + + + + tests + + + + + + + + + + diff --git a/src/BuyableTrait.php b/src/BuyableTrait.php index 8d7f5d2..d2c8adc 100644 --- a/src/BuyableTrait.php +++ b/src/BuyableTrait.php @@ -20,6 +20,7 @@ public function getBuyableIdentifier() * Get the description or title of the Buyable item. * * @return string + * @throws \Exception */ public function getBuyableDescription() { @@ -30,6 +31,7 @@ public function getBuyableDescription() * Get the price of the Buyable item. * * @return float|null + * @throws \Exception */ public function getBuyablePrice() {