$name * @param null|array $options * @return mixed * @psalm-return ($name is class-string ? T : mixed) * @throws Exception\ServiceNotFoundException If no factory/abstract * factory could be found to create the instance. * @throws Exception\ServiceNotCreatedException If factory/delegator fails * to create the instance. * @throws ContainerExceptionInterface If any other error occurs. */ public function build($name, ?array $options = null); }