for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Platforms\Exception;
use Doctrine\DBAL\DBALException;
final class InvalidPlatformVersion extends DBALException implements PlatformException
{
/**
* Returns a new instance for an invalid specified platform version.
*
* @param string $version The invalid platform version given.
* @param string $expectedFormat The expected platform version format.
*/
public static function new(string $version, string $expectedFormat) : self
return new self(
sprintf(
'Invalid platform version "%s" specified. The platform version has to be specified in the format: "%s".',
$version,
$expectedFormat
)
);
}