src/Capsule.php
public function execute(array $operations)
    {
        foreach ($operations as $operation) {
            if (!$operation instanceof OperationInterface) {
                throw new CapsuleException(sprintf(
                    "Migration operation expected to be an instance of `OperationInterface`, `%s` given",
                    get_class($operation)
                ));
            }

            $operation->execute($this);
        }
    }
public function execute(array $operations)
    {
        foreach ($operations as $operation) {
            if (!$operation instanceof OperationInterface) {
                throw new CapsuleException(sprintf(
                    "Migration operation expected to be an instance of `OperationInterface`, `%s` given",
                    get_class($operation)
                ));
            }

            $operation->execute($this);
        }
    }
{@inheritdoc}

@throws \Throwable