1 | <?php |
||
19 | class GithubController extends CommonController |
||
20 | { |
||
21 | protected $_name; |
||
22 | protected $_vendor; |
||
23 | protected $_package; |
||
24 | protected $_description; |
||
25 | |||
26 | /** |
||
27 | * @var string GitHub OAuth access token |
||
28 | */ |
||
29 | protected $_token; |
||
30 | |||
31 | public function setName($value) |
||
38 | |||
39 | public function getName() |
||
47 | |||
48 | public function setVendor($value) |
||
52 | |||
53 | public function getVendor() |
||
61 | |||
62 | public function setPackage($value) |
||
66 | |||
67 | public function getPackage() |
||
75 | |||
76 | public function setDescription($value) |
||
80 | |||
81 | public function getDescription() |
||
89 | |||
90 | /** |
||
91 | * Create the repo on GitHub. |
||
92 | * @return int exit code |
||
93 | */ |
||
94 | public function actionCreate() |
||
101 | |||
102 | /** |
||
103 | * Clone repo from github. |
||
104 | * TODO this action must be run without `start`. |
||
105 | * @param string $repo full name vendor/package |
||
106 | * @return int exit code |
||
107 | */ |
||
108 | public function actionClone($repo) |
||
112 | |||
113 | /** |
||
114 | * Check if repo exists. |
||
115 | * @param string $repo full name vendor/package defaults to this repo name |
||
116 | * @return int exit code |
||
117 | */ |
||
118 | public function actionExists($repo = null) |
||
122 | |||
123 | public function actionRelease($version = null) |
||
140 | |||
141 | /** |
||
142 | * Waits until push is actually finished. |
||
143 | * TODO Check github if it really has latest local commit. |
||
144 | * @return int 0 - success, 1 - failed |
||
145 | */ |
||
146 | public function actionWaitPush() |
||
152 | |||
153 | public function request($method, $path, $data) |
||
159 | |||
160 | public function findToken() |
||
164 | |||
165 | public function getToken() |
||
173 | } |
||
174 |
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: