1 | <?php |
||
27 | class CallerSSH2 implements CallerInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var resource |
||
31 | */ |
||
32 | private $resource; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $gitPath; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | private $binaryVersion; |
||
43 | |||
44 | /** |
||
45 | * the output lines of the command |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | private $outputLines = array(); |
||
50 | |||
51 | /** |
||
52 | * @param resource $resource |
||
53 | * @param string $gitPath path of the git executable on the remote host |
||
54 | * |
||
55 | * @internal param string $host remote host |
||
56 | * @internal param int $port remote port |
||
57 | */ |
||
58 | public function __construct($resource, $gitPath = '/usr/bin/git') |
||
65 | |||
66 | /** |
||
67 | * execute a command |
||
68 | * |
||
69 | * @param string $cmd the command |
||
70 | * @param bool $git prepend git to the command |
||
71 | * @param null|string $cwd directory where the command should be executed |
||
72 | * |
||
73 | * @return CallerInterface |
||
74 | */ |
||
75 | public function execute($cmd, $git = true, $cwd = null) |
||
90 | |||
91 | /** |
||
92 | * after calling execute this method should return the output |
||
93 | * |
||
94 | * @param bool $stripBlankLines strips the blank lines |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | public function getOutputLines($stripBlankLines = false) |
||
113 | |||
114 | /** |
||
115 | * @inheritdoc |
||
116 | */ |
||
117 | public function getBinaryPath() |
||
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | */ |
||
125 | public function getBinaryVersion() |
||
129 | } |
||
130 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..