Skip to content
Snippets Groups Projects
Commit 36f9f90c authored by Moshe Weitzman's avatar Moshe Weitzman
Browse files

Fix phpstan errors with deprecated method DrushStyle::choice()

parent 80640082
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,8 @@ include: ...@@ -9,7 +9,8 @@ include:
# Start custom overrides. # Start custom overrides.
variables: variables:
OPT_IN_TEST_MAX_PHP: 1 # Needed in order to get our Drupal 10 testing to use a Drush 13 compatible PHP.
_TARGET_PHP: 8.3
OPT_IN_TEST_NEXT_MAJOR: 1 OPT_IN_TEST_NEXT_MAJOR: 1
SKIP_CSPELL: 1 SKIP_CSPELL: 1
# Show more log output. # Show more log output.
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"doctrine/common": "^2.7 || ^3.4" "doctrine/common": "^2.7 || ^3.4"
}, },
"require-dev": { "require-dev": {
"drush/drush": "^12.5.1 || ^13", "drush/drush": "^13",
"firephp/firephp-core": "^0.5.3", "firephp/firephp-core": "^0.5.3",
"kint-php/kint": "^5.1" "kint-php/kint": "^5.1"
}, },
......
...@@ -142,7 +142,7 @@ final class DevelCommands extends DrushCommands { ...@@ -142,7 +142,7 @@ final class DevelCommands extends DrushCommands {
} }
if ($hook_implementations !== []) { if ($hook_implementations !== []) {
if (!$choice = $this->io()->choice('Enter the number of the hook implementation you wish to view.', array_combine($hook_implementations, $hook_implementations))) { if (!$choice = $this->io()->select('Enter the number of the hook implementation you wish to view.', array_combine($hook_implementations, $hook_implementations))) {
throw new UserAbortException(); throw new UserAbortException();
} }
...@@ -188,7 +188,7 @@ final class DevelCommands extends DrushCommands { ...@@ -188,7 +188,7 @@ final class DevelCommands extends DrushCommands {
'kernel.view', 'kernel.view',
]; ];
$events = array_combine($events, $events); $events = array_combine($events, $events);
if (!$event = $this->io()->choice('Enter the event you wish to explore.', $events)) { if (!$event = $this->io()->select('Enter the event you wish to explore.', $events)) {
throw new UserAbortException(); throw new UserAbortException();
} }
...@@ -204,7 +204,7 @@ final class DevelCommands extends DrushCommands { ...@@ -204,7 +204,7 @@ final class DevelCommands extends DrushCommands {
$choices[$callable] = $callable; $choices[$callable] = $callable;
} }
if (!$choice = $this->io()->choice('Enter the number of the implementation you wish to view.', $choices)) { if (!$choice = $this->io()->select('Enter the number of the implementation you wish to view.', $choices)) {
throw new UserAbortException(); throw new UserAbortException();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment