Skip to content

Commit

Permalink
Fix conflict resolution in github actions for dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Jan 11, 2024
1 parent 849592b commit d7080e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/functional_test__rector_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Install Drupal Rector
run: |
cd ~/drupal
composer require palantirnet/drupal-rector:@dev --no-progress
composer require palantirnet/drupal-rector:@dev --no-progress --update-with-dependencies
- name: Install Drupal Rector Config
run: |
cd ~/drupal
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"webflo/drupal-finder": "^1.2"
},
"conflict": {
"phpstan/phpstan": ">1.10.54",
"phpstan/phpstan": ">=1.10.55",
"rector/rector": ">=0.19"
},
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ parameters:
count: 1
path: src/Drupal8/Rector/Deprecation/EntityLoadRector.php

-
message: "#^Parameter \\#1 \\$items of class PhpParser\\\\Node\\\\Expr\\\\Array_ constructor expects array\\<PhpParser\\\\Node\\\\ArrayItem\\>, array\\<int, PhpParser\\\\Node\\\\Expr\\\\ArrayItem\\> given\\.$#"
count: 1
path: src/Drupal8/Rector/Deprecation/EntityLoadRector.php

-
message: "#^Access to an undefined property PhpParser\\\\Node\\\\Expr\\:\\:\\$expr\\.$#"
count: 2
Expand Down
4 changes: 1 addition & 3 deletions src/Drupal8/Rector/Deprecation/EntityLoadRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ public function refactor(Node $node): ?Node

$reset_args = [
// This creates a new argument that wraps the entity ID in an array.
new Node\Arg(
new Node\Expr\Array_([new \PhpParser\Node\ArrayItem($entity_id->value)])
),
new Node\Arg(new Node\Expr\Array_([new Node\Expr\ArrayItem($entity_id->value)])),
];

$entity_load_reset_node = new Node\Expr\MethodCall($getStorage_node,
Expand Down

0 comments on commit d7080e5

Please sign in to comment.