diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php
index a39c2a931..fee65129e 100644
--- a/system/src/Grav/Console/Gpm/InstallCommand.php
+++ b/system/src/Grav/Console/Gpm/InstallCommand.php
@@ -254,7 +254,7 @@ class InstallCommand extends ConsoleCommand
if ($major_version_changed) {
if ($this->all_yes) {
- $this->output-writeln("The package $package_name will be updated to a new major version $new_version, from $old_version");
+ $this->output->writeln("The package $package_name will be updated to a new major version $new_version, from $old_version");
return;
}