AlreadyAtVersion.php 439 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Exception;
  4. use RuntimeException;
  5. use function sprintf;
  6. final class AlreadyAtVersion extends RuntimeException implements MigrationException
  7. {
  8. public static function new(string $version): self
  9. {
  10. return new self(
  11. sprintf(
  12. 'Database is already at version %s',
  13. $version
  14. ),
  15. 6
  16. );
  17. }
  18. }