1 | <?php |
||
21 | class GitHubRelease extends GitHub |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $tag; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $name; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $description = ''; |
||
37 | |||
38 | /** |
||
39 | * @var string[] |
||
40 | */ |
||
41 | protected $changes = []; |
||
42 | |||
43 | /** |
||
44 | * @var bool |
||
45 | */ |
||
46 | protected $draft = false; |
||
47 | |||
48 | /** |
||
49 | * @var bool |
||
50 | */ |
||
51 | protected $prerelease = false; |
||
52 | |||
53 | /** |
||
54 | * @var string |
||
55 | */ |
||
56 | protected $comittish = 'master'; |
||
57 | |||
58 | /** |
||
59 | * @param string $tag |
||
60 | */ |
||
61 | public function __construct($tag) |
||
65 | |||
66 | /** |
||
67 | * @param string $tag |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function tag($tag) |
||
76 | |||
77 | /** |
||
78 | * @param bool $draft |
||
79 | * |
||
80 | * @return $this |
||
81 | */ |
||
82 | public function draft($draft) |
||
87 | |||
88 | /** |
||
89 | * @param string $name |
||
90 | * |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function name($name) |
||
98 | |||
99 | /** |
||
100 | * @param string $description |
||
101 | * |
||
102 | * @return $this |
||
103 | */ |
||
104 | public function description($description) |
||
109 | |||
110 | /** |
||
111 | * @param bool $prerelease |
||
112 | * |
||
113 | * @return $this |
||
114 | */ |
||
115 | public function prerelease($prerelease) |
||
120 | |||
121 | /** |
||
122 | * @param string $comittish |
||
123 | * |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function comittish($comittish) |
||
131 | |||
132 | /** |
||
133 | * @param string $description |
||
134 | * |
||
135 | * @return $this |
||
136 | */ |
||
137 | public function appendDescription($description) |
||
145 | |||
146 | public function changes(array $changes) |
||
151 | |||
152 | /** |
||
153 | * @param string $change |
||
154 | * |
||
155 | * @return $this |
||
156 | */ |
||
157 | public function change($change) |
||
162 | |||
163 | /** |
||
164 | * @return string |
||
165 | */ |
||
166 | protected function getBody() |
||
181 | |||
182 | /** |
||
183 | * {@inheritdoc} |
||
184 | */ |
||
185 | public function run() |
||
209 | } |
||
210 |
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..