It seems like new \Vundi\Checkpoint1\GithubApi($this->username) of type object<Vundi\Checkpoint1\GithubApi> is incompatible with the declared type object<Vundi\Checkpoint1\obj> of property $githubApi.
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..
Loading history...
37
}
38
39
/**
40
* Will return a status depending on the number of repos you have
41
* on github
42
* @return string
43
*/
44
public function getStatus()
45
{
46
if ($this->githubApi->getRepos() >= 5 && $this->githubApi->getRepos() <= 10) {
47
return "Yeah, I crown you Senior Evangelist. Thanks for making the world a better place";
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..