It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
It seems like $request of type object<Spatie\SlashCommand\SlashCommandRequest> is incompatible with the declared type string of property $responseType.
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...
31
32
return $this;
33
}
34
35
public function setText(string $text)
36
{
37
$this->text = $text;
38
39
return $this;
40
}
41
42
public function displayResponseOnlyToUserWhoTypedCommand()
43
{
44
$this->responseType = 'ephemeral';
45
46
return $this;
47
}
48
49
public function displayResponseToEveryoneOnChannel()
The method getText() does not seem to exist on object<Spatie\SlashCommand\SlashCommandResponse>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
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..