Issues (96)

Tests/ServiceProviderTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Ikechukwukalu\Clamavfileupload\Tests;
4
5
use Ikechukwukalu\Clamavfileupload\ClamavFileUploadServiceProvider;
6
7
class ServiceProviderTest extends TestCase
8
{
9
    public function test_merges_config(): void
10
    {
11
        static::assertSame(
12
            $this->app->make('files')
0 ignored issues
show
The method make() does not exist on null. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

12
            $this->app->/** @scrutinizer ignore-call */ 
13
                        make('files')

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
13
                ->getRequire(ClamavFileUploadServiceProvider::CONFIG),
14
            $this->app->make('config')->get('clamavfileupload')
15
        );
16
    }
17
18
    public function test_loads_translations(): void
19
    {
20
        static::assertArrayHasKey('clamavfileupload',
21
            $this->app->make('translator')->getLoader()->namespaces());
22
    }
23
}
24