Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

4 files
+ 10
8
Compare changes
  • Side-by-side
  • Inline
Files
4
  • aeb15638
    Issue #3259026 by longwave, daffie: [Symfony 6] Add return types to Symfony... · aeb15638
    catch authored
    Issue #3259026 by longwave, daffie: [Symfony 6] Add return types to Symfony Console application methods
@@ -3,6 +3,7 @@
namespace Drupal\Core\Command;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputInterface;
/**
@@ -13,14 +14,14 @@ class DbDumpApplication extends Application {
/**
* {@inheritdoc}
*/
protected function getCommandName(InputInterface $input) {
protected function getCommandName(InputInterface $input): ?string {
return 'dump-database-d8-mysql';
}
/**
* {@inheritdoc}
*/
protected function getDefaultCommands() {
protected function getDefaultCommands(): array {
// Even though this is a single command, keep the HelpCommand (--help).
$default_commands = parent::getDefaultCommands();
$default_commands[] = new DbDumpCommand();
@@ -33,7 +34,7 @@ protected function getDefaultCommands() {
* Overridden so the application doesn't expect the command name as the first
* argument.
*/
public function getDefinition() {
public function getDefinition(): InputDefinition {
$definition = parent::getDefinition();
// Clears the normal first argument (the command name).
$definition->setArguments();
Loading