From 09d8f17f782bfb4463e0c5282fd6ef4953a6e13b Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Tue, 19 Sep 2023 11:00:14 +0200 Subject: [PATCH] Add declare strict_types to seed template --- src/Phinx/Console/Command/SeedCreate.php | 2 +- src/Phinx/Seed/Seed.template.php.dist | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Phinx/Console/Command/SeedCreate.php b/src/Phinx/Console/Command/SeedCreate.php index 93e603fe9..34e9f7dd6 100644 --- a/src/Phinx/Console/Command/SeedCreate.php +++ b/src/Phinx/Console/Command/SeedCreate.php @@ -198,7 +198,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $namespace = $config instanceof NamespaceAwareInterface ? $config->getSeedNamespaceByPath($path) : null; $classes = [ - '$namespaceDefinition' => $namespace !== null ? ('namespace ' . $namespace . ';') : '', + '$namespaceDefinition' => $namespace !== null ? (PHP_EOL . 'namespace ' . $namespace . ';' . PHP_EOL) : '', '$namespace' => $namespace, '$useClassName' => $config->getSeedBaseClassName(false), '$className' => $className, diff --git a/src/Phinx/Seed/Seed.template.php.dist b/src/Phinx/Seed/Seed.template.php.dist index 74ba62237..ebb0affc4 100644 --- a/src/Phinx/Seed/Seed.template.php.dist +++ b/src/Phinx/Seed/Seed.template.php.dist @@ -1,6 +1,7 @@