Skip to content

Commit 4b7ec1c

Browse files
Update travis file and fix tests references for phpstan
1 parent 27461a4 commit 4b7ec1c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ matrix:
1818
before_script:
1919
- composer self-update
2020
- composer install --no-interaction
21-
- travis_retry composer require laravel/framework;
21+
- travis_retry composer require laravel/framework laravel/lumen-framework;
2222
script:
2323
- composer test:travis

phpstan.neon

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
parameters:
2-
ignoreErrors:
3-
# Ignore type errors for passing a Mock
4-
- '#.*MockObject given.*#'
5-
- '#.*MockInterface given.*#'
6-
- '#.*does not accept PHPUnit\\Framework\\MockObject\\MockObject.*#'
72
excludes_analyse:
83
- %rootDir%/../../../config/*

src/HelpScoutServiceProvider.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
use HelpScout\Api\ApiClient;
88
use HelpScout\Api\ApiClientFactory;
9+
use Illuminate\Foundation\Application as LaravelApplication;
910
use Illuminate\Support\ServiceProvider;
11+
use Laravel\Lumen\Application as LumenApplication;
1012

1113
class HelpScoutServiceProvider extends ServiceProvider
1214
{

tests/ServiceProviderTest.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
use HelpScout\Api\Workflows\WorkflowsEndpoint;
99
use HelpScout\Laravel\HelpScoutFacade as HelpScout;
1010
use HelpScout\Laravel\HelpScoutServiceProvider;
11-
use Illuminate\Contracts\Container\Container;
11+
use Illuminate\Contracts\Foundation\Application;
1212
use PHPUnit\Framework\TestCase;
1313

1414
abstract class ServiceProviderTest extends TestCase
1515
{
16+
/**
17+
* @var Application
18+
*/
1619
protected $app;
1720

1821
public function setUp()
@@ -25,7 +28,7 @@ public function setUp()
2528
}
2629

2730
/**
28-
* @return Container
31+
* @return Application
2932
*/
3033
abstract protected function setupApplication();
3134

0 commit comments

Comments
 (0)