Total Complexity | 1 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class DemoTest extends TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $PACKAGE_NAME = "LaravelSmartMeta"; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $PACKAGE_CLASSES = [ |
||
22 | "SmartMeta", |
||
23 | ]; |
||
24 | |||
25 | protected $app; |
||
26 | |||
27 | public function __construct() |
||
32 | |||
33 | public function createApplication() |
||
45 | |||
46 | /** |
||
47 | * A basic test example. |
||
48 | * |
||
49 | * @return void |
||
50 | */ |
||
51 | public function testBasicTest() |
||
70 | } |
||
71 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: