diff --git a/framework/core/src/Api/Serializer/ForumSerializer.php b/framework/core/src/Api/Serializer/ForumSerializer.php index 5a717eaa4..9fb0b3fa0 100644 --- a/framework/core/src/Api/Serializer/ForumSerializer.php +++ b/framework/core/src/Api/Serializer/ForumSerializer.php @@ -85,7 +85,7 @@ class ForumSerializer extends AbstractSerializer if ($this->actor->can('administrate')) { $attributes['adminUrl'] = $this->url->to('admin')->base(); - $attributes['version'] = $this->app->version(); + $attributes['version'] = Application::VERSION; } return $attributes; diff --git a/framework/core/src/Database/Console/MigrateCommand.php b/framework/core/src/Database/Console/MigrateCommand.php index 74f900e1f..8e1357c3c 100644 --- a/framework/core/src/Database/Console/MigrateCommand.php +++ b/framework/core/src/Database/Console/MigrateCommand.php @@ -86,7 +86,7 @@ class MigrateCommand extends AbstractCommand } } - $this->container->make(SettingsRepositoryInterface::class)->set('version', $this->app->version()); + $this->container->make(SettingsRepositoryInterface::class)->set('version', Application::VERSION); $this->info('Publishing assets...');