Skip to content

Commit fef2e73

Browse files
authored
fix(deps): update datastore/tutorial to symfony/console to v5 (GoogleCloudPlatform#1415)
1 parent 50f1034 commit fef2e73

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

datastore/tutorial/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"google/cloud-datastore": "^1.2",
4-
"symfony/console": "^3.0"
4+
"symfony/console": "^5.0"
55
},
66
"autoload": {
77
"psr-4": { "Google\\Cloud\\Samples\\Datastore\\Tasks\\": "src" },

datastore/tutorial/src/CreateTaskCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6363
'Created new task with ID %d.', $task->key()->pathEnd()['id']
6464
)
6565
);
66+
67+
return 0;
6668
}
6769
}

datastore/tutorial/src/DeleteTaskCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5959
$taskId = intval($input->getArgument('taskId'));
6060
delete_task($datastore, $taskId);
6161
$output->writeln(sprintf('Task %d deleted successfully.', $taskId));
62+
63+
return 0;
6264
}
6365
}

datastore/tutorial/src/ListTasksCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7070
);
7171
}
7272
$table->render();
73+
74+
return 0;
7375
}
7476
}

datastore/tutorial/src/MarkTaskDoneCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5959
$taskId = intval($input->getArgument('taskId'));
6060
mark_done($datastore, $taskId);
6161
$output->writeln(sprintf('Task %d updated successfully.', $taskId));
62+
63+
return 0;
6264
}
6365
}

0 commit comments

Comments
 (0)