1 | <?php |
||
19 | class GithubController extends CommonController |
||
20 | { |
||
21 | protected $_name; |
||
22 | protected $_vendor; |
||
23 | protected $_description; |
||
24 | |||
25 | /** |
||
26 | * @var string GitHub OAuth access token |
||
27 | */ |
||
28 | protected $_token; |
||
29 | |||
30 | public function setFull_name($value) |
||
34 | |||
35 | public function getFull_name() |
||
39 | |||
40 | public function setFullName($value) |
||
44 | |||
45 | public function getFullName() |
||
49 | |||
50 | public function setName($value) |
||
54 | |||
55 | public function getName() |
||
63 | |||
64 | public function setVendor($value) |
||
68 | |||
69 | public function getVendor() |
||
77 | |||
78 | public function setDescription($value) |
||
82 | |||
83 | public function getDescription() |
||
91 | |||
92 | /** |
||
93 | * Create the repo on GitHub. |
||
94 | * @return int exit code |
||
95 | */ |
||
96 | public function actionCreate() |
||
103 | |||
104 | /** |
||
105 | * Clone repo from github. |
||
106 | * TODO this action must be run without `start`. |
||
107 | * @param string $repo full name vendor/package |
||
108 | * @return int exit code |
||
109 | */ |
||
110 | public function actionClone($repo) |
||
114 | |||
115 | /** |
||
116 | * Action to check if repo exists. |
||
117 | * @param string $repo full name vendor/package defaults to this repo name |
||
118 | * @return int exit code |
||
119 | */ |
||
120 | public function actionExists($repo = null) |
||
124 | |||
125 | /** |
||
126 | * Check if repo exists. |
||
127 | * @param string $repo |
||
128 | * @return bool |
||
129 | */ |
||
130 | public static function exists($repo) |
||
134 | |||
135 | public function actionRelease($version = null) |
||
152 | |||
153 | /** |
||
154 | * Waits until push is actually finished. |
||
155 | * TODO Check github if it really has latest local commit. |
||
156 | * @return int 0 - success, 1 - failed |
||
157 | */ |
||
158 | public function actionWaitPush() |
||
164 | |||
165 | public function request($method, $path, $data) |
||
171 | |||
172 | public function findToken() |
||
176 | |||
177 | public function getToken() |
||
185 | } |
||
186 |
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: