| 1 | <?php |
||
| 9 | class DemoTest extends TestCase |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $PACKAGE_NAME = "LaravelStringHelper"; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private $PACKAGE_CLASSES = [ |
||
| 20 | "StringHelper", |
||
| 21 | ]; |
||
| 22 | |||
| 23 | protected $app; |
||
| 24 | |||
| 25 | public function __construct() |
||
| 30 | |||
| 31 | public function createApplication() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * A basic test example. |
||
| 46 | * |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | public function testBasicTest() |
||
| 69 | } |
||
| 70 |
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: