1 | <?php |
||
19 | class GithubController extends CommonController |
||
20 | { |
||
21 | protected $_name; |
||
22 | protected $_vendor; |
||
23 | protected $_package; |
||
24 | |||
25 | /** |
||
26 | * @var string GitHub OAuth access token |
||
27 | */ |
||
28 | protected $_token; |
||
29 | |||
30 | public function setName($value) |
||
37 | |||
38 | public function getName() |
||
46 | |||
47 | public function setVendor($value) |
||
51 | |||
52 | public function getVendor() |
||
60 | |||
61 | public function actionCreate() |
||
64 | |||
65 | public function setPackage($value) |
||
69 | |||
70 | public function getPackage() |
||
78 | |||
79 | /** |
||
80 | * Clone repo from github. |
||
81 | * TODO this action must be run without `start`. |
||
82 | * @param string $repo full name vendor/package |
||
83 | * @return int exit code |
||
84 | */ |
||
85 | public function actionClone($repo) |
||
89 | |||
90 | public function actionRelease($version = null) |
||
107 | |||
108 | /** |
||
109 | * Waits for push had actually finished. |
||
110 | * TODO Check github if it really has latest local commit. |
||
111 | * @return int 0 - success, 1 - failed |
||
112 | */ |
||
113 | public function actionWaitPush() |
||
119 | |||
120 | public function request($method, $path, $data) |
||
126 | |||
127 | public function getToken() |
||
135 | } |
||
136 |
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: