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 | * Action to 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 | /** |
||
124 | * Check if repo exists. |
||
125 | * @param string $repo |
||
126 | * @return bool |
||
127 | */ |
||
128 | static public function exists($repo) |
||
132 | |||
133 | public function actionRelease($version = null) |
||
150 | |||
151 | /** |
||
152 | * Waits until push is actually finished. |
||
153 | * TODO Check github if it really has latest local commit. |
||
154 | * @return int 0 - success, 1 - failed |
||
155 | */ |
||
156 | public function actionWaitPush() |
||
162 | |||
163 | public function request($method, $path, $data) |
||
169 | |||
170 | public function findToken() |
||
174 | |||
175 | public function getToken() |
||
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: