The type Inspirum\Balikobot\Model\TransportCost\list was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. excluded_paths:["lib/*"],
you can move it to the dependency path list as follows:
The expression return array_map(functio.../ }, $this->getItems()) returns the type array which is incompatible with the documented return type Inspirum\Balikobot\Model\TransportCost\list.
Loading history...
43
}
44
45
2
public function getTotalCost(): float
46
{
47
2
$totalCost = 0.0;
48
2
$currencyCode = $this->getCurrencyCode();
49
50
2
foreach ($this->getItems() as $cost) {
51
2
if ($cost->getCurrencyCode() !== $currencyCode) {
52
1
throw new RuntimeException('Package cost currency codes are not the same');
53
}
54
55
2
$totalCost += $cost->getTotalCost();
56
}
57
58
1
return $totalCost;
59
}
60
61
3
public function getCurrencyCode(): string
62
{
63
3
if (empty($this->items)) {
64
1
throw new RuntimeException('Collection is empty');
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths