Skip to content

Commit

Permalink
Allow PHP 8 and Laravel 8 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekvedaras authored Jul 26, 2021
1 parent 547b91e commit 8e36ffd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ language: php
php:
- 7.2
- 7.3
- 8.0

before_script:
- travis_retry composer self-update
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
}
],
"require": {
"php": "^7.1.3",
"illuminate/notifications": "5.7.*|5.8.*|^6.0|^7.0",
"php": "^7.1.3|^8.0",
"illuminate/notifications": "5.7.*|5.8.*|^6.0|^7.0|^8.0",
"ryanwinchester/hubspot-php": "^1.2"
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "^9.5.7"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions tests/NotificationHubspotChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class NotificationHubspotChannelTest extends TestCase
public function test_email_is_sent_via_hubspot()
{
// https://stackoverflow.com/questions/21358268/mockery-call-has-a-different-signature
if (defined('E_STRICT')) error_reporting('E_ALL ^ E_STRICT');
if (defined('E_STRICT')) error_reporting(E_ALL ^ E_STRICT);

// Arrange.
$hubspot = Mockery::mock(Factory::class);
Expand All @@ -41,7 +41,7 @@ public function test_email_is_sent_via_hubspot()
$this->assertTrue($result);
}

public function tearDown()
public function tearDown() : void
{
Mockery::close();
}
Expand Down

0 comments on commit 8e36ffd

Please sign in to comment.