Skip to content

Commit

Permalink
Laravel 8 support
Browse files Browse the repository at this point in the history
* laravel 8 support
* drop support for php 7.2
  • Loading branch information
bomshteyn authored Sep 13, 2020
1 parent 2054d08 commit 7192f77
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 34 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: php

php:
- 7.2
- 7.3
- 7.4

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
47 changes: 19 additions & 28 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="testdox-text" target="testdox.txt"/>
</logging>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging>
<testdoxText outputFile="testdox.txt"/>
</logging>
<php>
<env name="APP_ENV" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
</php>
</phpunit>
2 changes: 2 additions & 0 deletions src/BuyableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function getBuyableIdentifier()
* Get the description or title of the Buyable item.
*
* @return string
* @throws \Exception
*/
public function getBuyableDescription()
{
Expand All @@ -30,6 +31,7 @@ public function getBuyableDescription()
* Get the price of the Buyable item.
*
* @return float|null
* @throws \Exception
*/
public function getBuyablePrice()
{
Expand Down

0 comments on commit 7192f77

Please sign in to comment.