Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 9, 2021
1 parent c42a80a commit 1622fcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getNode(): string
*/
public function resolve(Node $node): ?string
{
if (property_exists($node, 'namespacedName') && $node->namespacedName instanceof Name) {
if (/*property_exists($node, 'namespacedName') && */ $node->namespacedName instanceof Name) {
return $node->namespacedName->toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public function refactor(Node $node): MethodCall | StaticCall | ClassMethod
public function configure(array $configuration): void
{
$replacedArguments = $configuration[self::REPLACED_ARGUMENTS] ?? $configuration;
Assert::isArray($replacedArguments);
Assert::allIsAOf($replacedArguments, ReplaceArgumentDefaultValue::class);

$this->replacedArguments = $replacedArguments;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ final class ReplaceArgumentDefaultValue implements ReplaceArgumentDefaultValueIn
final public const ANY_VALUE_BEFORE = '*ANY_VALUE_BEFORE*';

/**
* @param int<0, max> $position
* @param mixed $valueBefore
* @param mixed $valueAfter
*/
Expand Down

0 comments on commit 1622fcc

Please sign in to comment.