Skip to content

Commit

Permalink
Update drupal/coder
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-teck committed May 31, 2023
1 parent 26b6c5b commit a9e3006
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"require-dev": {
"ext-simplexml": "*",
"chi-teck/drupal-coder-extension": "^2.0.0-alpha4",
"drupal/coder": "8.3.17",
"drupal/coder": "8.3.18",
"drupal/core": "10.1.x-dev",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.5",
Expand Down
2 changes: 1 addition & 1 deletion src/Command/PhpStormMeta/PhpStormMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function create(ContainerInterface $container): self {
* @psalm-suppress ArgumentTypeCoercion
*/
protected function generate(array &$vars, Assets $assets): void {
/** @psalm-suppress NullableReturnStatement, InvalidNullableReturnType */

$service = fn (string $name): object => $this->container->get($name);

$entity_interface = static function (EntityTypeInterface $definition): ?string {
Expand Down
1 change: 0 additions & 1 deletion src/Command/Yml/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ protected function generate(array &$vars, Assets $assets): void {
$question->setValidator(new Required());
try {
$source_manager = $this->container->get('plugin.manager.migrate.source');
/** @psalm-suppress PossiblyNullReference */
$source_plugins = \array_keys($source_manager->getDefinitions());
$question->setAutocompleterValues($source_plugins);
}
Expand Down
1 change: 1 addition & 0 deletions src/Helper/Drupal/HookInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function getHookTemplates(): array {
return $hooks;
}

/** @psalm-suppress ArgumentTypeCoercion */
$core_api_files = \glob(\DRUPAL_ROOT . '/core/lib/Drupal/Core/*/*.api.php');
$core_api_files[] = \DRUPAL_ROOT . '/core/core.api.php';

Expand Down

0 comments on commit a9e3006

Please sign in to comment.