1 | <?php |
||
26 | class SkeletonHelperTest extends AbstractTestCase { |
||
27 | |||
28 | /** |
||
29 | * Directory "illegal". |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $directoryIllegal; |
||
34 | |||
35 | /** |
||
36 | * Directory "resources". |
||
37 | * |
||
38 | * @var string |
||
39 | */ |
||
40 | private $directoryResources; |
||
41 | |||
42 | /** |
||
43 | * Directory "skeleton". |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | private $directorySkeleton; |
||
48 | |||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | protected function setUp(): void { |
||
62 | |||
63 | /** |
||
64 | * Tests the copySkeleton() method. |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | public function testCopySkeleton(): void { |
||
77 | |||
78 | /** |
||
79 | * Tests the listSkeleton() method. |
||
80 | * |
||
81 | * @return void |
||
82 | * @throws Exception Throws an exception if an error occurs. |
||
83 | */ |
||
84 | public function testListSkeleton(): void { |
||
98 | |||
99 | /** |
||
100 | * Tests the listSkeleton() method. |
||
101 | * |
||
102 | * @return void |
||
103 | */ |
||
104 | public function testListSkeletonWithDirectoryNotFoundException(): void { |
||
114 | } |
||
115 |
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: