Skip to content

Commit eb7a2e1

Browse files
authored
Merge pull request #292 from palantirnet/feature/rector-1.0
feat: upgrade to rector 1.0
2 parents 2ccc94f + a9d47b0 commit eb7a2e1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"ast"
1111
],
1212
"require": {
13-
"rector/rector": "~0.19.0",
13+
"rector/rector": "^1.0",
1414
"webflo/drupal-finder": "^1.2"
1515
},
1616
"license": "MIT",

src/Drupal9/Rector/ValueObject/AssertLegacyTraitConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AssertLegacyTraitConfiguration
2222
* @param bool $processFirstArgumentOnly toggle to reduce the number of arguments passed to 1
2323
* @param string $declaringSource the class that declares the deprecated method
2424
*/
25-
public function __construct(string $deprecatedMethodName, string $methodName, string $comment = '', bool $isAssertSessionMethod = true, bool $processFirstArgumentOnly = false, string $declaringSource = 'Drupal\FunctionalTests\AssertLegacyTrait', string $prependArgument = null)
25+
public function __construct(string $deprecatedMethodName, string $methodName, string $comment = '', bool $isAssertSessionMethod = true, bool $processFirstArgumentOnly = false, string $declaringSource = 'Drupal\FunctionalTests\AssertLegacyTrait', ?string $prependArgument = null)
2626
{
2727
$this->deprecatedMethodName = $deprecatedMethodName;
2828
$this->methodName = $methodName;

src/Rector/PHPUnit/ShouldCallParentMethodsRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getNodeTypes(): array
2525
* @param Node $node
2626
* @param Scope $scope
2727
*
28-
* @return \PhpParser\Node|null
28+
* @return Node|null
2929
*/
3030
public function refactorWithScope(Node $node, Scope $scope)
3131
{

src/Utility/GetDeclaringSourceTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait GetDeclaringSourceTrait
1414
/**
1515
* Gets a method or property's declaring source (trait or class.).
1616
*
17-
* @param node\Expr\MethodCall|Node\Expr\PropertyFetch $expr
17+
* @param Node\Expr\MethodCall|Node\Expr\PropertyFetch $expr
1818
* The expression
1919
*
2020
* @return string|null

0 commit comments

Comments
 (0)