| 1 | <?php |
||
| 8 | class CompositeTargetOrigin implements TargetOriginInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var TargetOriginInterface[] |
||
| 12 | */ |
||
| 13 | private $targetOrigins; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param TargetOriginInterface[] ...$targetOrigins |
||
| 17 | */ |
||
| 18 | public function __construct(TargetOriginInterface ...$targetOrigins) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns an array of allowed domain names. |
||
| 25 | * If the "source" origin matches one of these origins, the request is valid. |
||
| 26 | * |
||
| 27 | * @return string[] |
||
| 28 | */ |
||
| 29 | public function __invoke(ServerRequestInterface $request): array |
||
| 39 | } |
||
| 40 |
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..