NoMigrationsToExecute.php 414 B

1234567891011121314151617181920
  1. <?php
  2. declare(strict_types=1);
  3. namespace Doctrine\Migrations\Exception;
  4. use RuntimeException;
  5. use Throwable;
  6. final class NoMigrationsToExecute extends RuntimeException implements MigrationException
  7. {
  8. public static function new(?Throwable $previous = null): self
  9. {
  10. return new self(
  11. 'Could not find any migrations to execute.',
  12. 4,
  13. $previous
  14. );
  15. }
  16. }