src/Viserio/Component/Filesystem/Adapter/AwsS3Connector.php
public static function getOptionValidators(): array
    {
        return [
            'prefix'  => ['string', 'null'],
            'options' => ['array'],
            'bucket'  => ['string'],
            'auth'    => [
                'credentials' => static function ($value): void {
                    if (! \is_array($value)) {
                        throw new InvalidArgumentException('.');
                    }

                    if (! isset($value['key']) && ! isset($value['secret'])) {
                        throw new InvalidArgumentException('.');
                    }
                },
            ],
        ];
    }
public static function getOptionValidators(): array
    {
        return [
            'prefix'  => ['string', 'null'],
            'options' => ['array'],
            'bucket'  => ['string'],
            'auth'    => [
                'credentials' => static function ($value): void {
                    if (! \is_array($value)) {
                        throw new InvalidArgumentException('.');
                    }

                    if (! isset($value['key']) && ! isset($value['secret'])) {
                        throw new InvalidArgumentException('.');
                    }
                },
            ],
        ];
    }
{@inheritdoc}