diff --git a/migrations/Version20231220204107.php b/migrations/Version20231220204107.php index cb91e17..252897f 100644 --- a/migrations/Version20231220204107.php +++ b/migrations/Version20231220204107.php @@ -20,7 +20,7 @@ final class Version20231220204107 extends AbstractMigration public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE snip ADD active_version_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:ulid)\', DROP active_commit'); + $this->addSql('ALTER TABLE snip ADD active_version_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:ulid)\''); $this->addSql('ALTER TABLE snip ADD CONSTRAINT FK_FEBD97966A1E45F3 FOREIGN KEY (active_version_id) REFERENCES snip_content (id)'); $this->addSql('CREATE INDEX IDX_FEBD97966A1E45F3 ON snip (active_version_id)'); } @@ -30,6 +30,6 @@ final class Version20231220204107 extends AbstractMigration // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE snip DROP FOREIGN KEY FK_FEBD97966A1E45F3'); $this->addSql('DROP INDEX IDX_FEBD97966A1E45F3 ON snip'); - $this->addSql('ALTER TABLE snip ADD active_commit VARCHAR(255) DEFAULT NULL, DROP active_version_id'); + $this->addSql('ALTER TABLE snip DROP active_version_id'); } } diff --git a/src/Service/SnipParser/Twig/SnipLoader.php b/src/Service/SnipParser/Twig/SnipLoader.php index 2ccd297..50b0806 100644 --- a/src/Service/SnipParser/Twig/SnipLoader.php +++ b/src/Service/SnipParser/Twig/SnipLoader.php @@ -33,7 +33,7 @@ class SnipLoader implements LoaderInterface return true; } - public function exists(string $name) + public function exists(string $name): bool { try { $this->getFromKey($name);