1 | <?php |
||
28 | class ReportTransferCommand implements ReportTransferAware |
||
29 | { |
||
30 | |||
31 | use ReportTransferAwareTrait; |
||
32 | |||
33 | /** |
||
34 | * @var Context |
||
35 | */ |
||
36 | private $context; |
||
37 | |||
38 | /** |
||
39 | * @var Stdio |
||
40 | */ |
||
41 | private $stdio; |
||
42 | |||
43 | /** |
||
44 | * @var \Eloquent\Pathogen\AbsolutePath |
||
45 | */ |
||
46 | private $configFilePath; |
||
47 | |||
48 | /** |
||
49 | * @var array |
||
50 | */ |
||
51 | private $optionRules = [ |
||
52 | 'c::', |
||
53 | 'd::', |
||
54 | 'config::', |
||
55 | 'debug::' |
||
56 | ]; |
||
57 | |||
58 | |||
59 | /** |
||
60 | * @param Context $context |
||
61 | * @param Stdio $stdio |
||
62 | */ |
||
63 | public function __construct(Context $context, Stdio $stdio) |
||
68 | |||
69 | /** |
||
70 | * @return int |
||
71 | */ |
||
72 | public function __invoke() |
||
82 | |||
83 | /** |
||
84 | * @throws \Eloquent\Pathogen\Exception\NonRelativePathException |
||
85 | */ |
||
86 | private function prepare() |
||
102 | |||
103 | /** |
||
104 | * @return int |
||
105 | */ |
||
106 | private function performAction() |
||
116 | |||
117 | /** |
||
118 | * @param PrintableExceptionInterface $exception |
||
119 | * @return int |
||
120 | */ |
||
121 | private function failed(PrintableExceptionInterface $exception) |
||
126 | |||
127 | private function configurationFile() |
||
144 | |||
145 | /** |
||
146 | * @return ReportEntity |
||
147 | */ |
||
148 | private function createReport() |
||
158 | |||
159 | /** |
||
160 | * @return int |
||
161 | */ |
||
162 | private function makeReport() |
||
169 | |||
170 | /** |
||
171 | * @return int |
||
172 | */ |
||
173 | private function sendReport() |
||
182 | |||
183 | } |
||
184 |
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: