From 7c1ee524be784bf54d4c09d1310c182593d8b2f2 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Fri, 26 Jul 2024 16:35:51 -0100 Subject: fix(migration-attributes): privatizing AttributeException Signed-off-by: Maxence Lange --- core/Command/Db/Migrations/GenerateMetadataCommand.php | 7 ++++--- core/Command/Db/Migrations/PreviewCommand.php | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'core/Command/Db') diff --git a/core/Command/Db/Migrations/GenerateMetadataCommand.php b/core/Command/Db/Migrations/GenerateMetadataCommand.php index 64840bea230..55a2a6aedab 100644 --- a/core/Command/Db/Migrations/GenerateMetadataCommand.php +++ b/core/Command/Db/Migrations/GenerateMetadataCommand.php @@ -14,6 +14,9 @@ use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; +/** + * @since 30.0.0 + */ class GenerateMetadataCommand extends Command { public function __construct( private readonly MetadataManager $metadataManager, @@ -43,9 +46,7 @@ class GenerateMetadataCommand extends Command { return 0; } - - - public function extractMigrationMetadata(): array { + private function extractMigrationMetadata(): array { return [ 'core' => $this->extractMigrationMetadataFromCore(), 'apps' => $this->extractMigrationMetadataFromApps() diff --git a/core/Command/Db/Migrations/PreviewCommand.php b/core/Command/Db/Migrations/PreviewCommand.php index b1881a0c42c..e35100dacb2 100644 --- a/core/Command/Db/Migrations/PreviewCommand.php +++ b/core/Command/Db/Migrations/PreviewCommand.php @@ -20,6 +20,9 @@ use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; +/** + * @since 30.0.0 + */ class PreviewCommand extends Command { private bool $initiated = false; public function __construct( -- cgit v1.2.3