<?php
declare(strict_types=1);

require __DIR__ . '/../vendor/autoload.php';

// The host framework (apexl/io-logger) provides a global logger() helper at
// runtime; vault only calls it, it doesn't require the package. Stub it here
// so tests that exercise execute()/executeRaw() (which log via logger('query'))
// can run in isolation without pulling in io-logger.
if (!function_exists('logger')) {
    function logger(string $stream = 'default'): object
    {
        return new class {
            public function __call(string $name, array $args): void
            {
                // no-op
            }
        };
    }
}
