The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
Loading history...
26
if ($this->prj === null) {
27
if ($packageName === null) {
28
$input = $this->io->getInput();
29
$packageName = $input->getOption('package');
30
if (empty($packageName)) {
31
$packageName = $this->package->getFullName();
32
}
33
}
34
35
if ($this->package->getFullName() == $packageName) {
36
$this->prj = $this->project;
37
} else {
38
$path = 'vendor/' . $packageName;
39
if (!file_exists($path)) {
40
throw new \RuntimeException(sprintf('Package (%s) cannot be found', $packageName));
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.