Skip to content

Commit

Permalink
Merge pull request #292 from palantirnet/feature/rector-1.0
Browse files Browse the repository at this point in the history
feat: upgrade to rector 1.0
  • Loading branch information
bbrala authored Feb 26, 2024
2 parents 2ccc94f + a9d47b0 commit eb7a2e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"ast"
],
"require": {
"rector/rector": "~0.19.0",
"rector/rector": "^1.0",
"webflo/drupal-finder": "^1.2"
},
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AssertLegacyTraitConfiguration
* @param bool $processFirstArgumentOnly toggle to reduce the number of arguments passed to 1
* @param string $declaringSource the class that declares the deprecated method
*/
public function __construct(string $deprecatedMethodName, string $methodName, string $comment = '', bool $isAssertSessionMethod = true, bool $processFirstArgumentOnly = false, string $declaringSource = 'Drupal\FunctionalTests\AssertLegacyTrait', string $prependArgument = null)
public function __construct(string $deprecatedMethodName, string $methodName, string $comment = '', bool $isAssertSessionMethod = true, bool $processFirstArgumentOnly = false, string $declaringSource = 'Drupal\FunctionalTests\AssertLegacyTrait', ?string $prependArgument = null)
{
$this->deprecatedMethodName = $deprecatedMethodName;
$this->methodName = $methodName;
Expand Down
2 changes: 1 addition & 1 deletion src/Rector/PHPUnit/ShouldCallParentMethodsRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getNodeTypes(): array
* @param Node $node
* @param Scope $scope
*
* @return \PhpParser\Node|null
* @return Node|null
*/
public function refactorWithScope(Node $node, Scope $scope)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Utility/GetDeclaringSourceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait GetDeclaringSourceTrait
/**
* Gets a method or property's declaring source (trait or class.).
*
* @param node\Expr\MethodCall|Node\Expr\PropertyFetch $expr
* @param Node\Expr\MethodCall|Node\Expr\PropertyFetch $expr
* The expression
*
* @return string|null
Expand Down

0 comments on commit eb7a2e1

Please sign in to comment.