Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 26, 2022
1 parent 1069c6f commit ce5eee9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -69,7 +69,7 @@ public function refactor(Node $node): ?Node
return null;
}

if (\str_contains($rawValue, '+')) {
if (\str_contains((string) $rawValue, '+')) {
return null;
}

Expand Down
Expand Up @@ -113,8 +113,8 @@ public function refactor(Node $node): ?Node
return null;
}

if (\str_contains($rawValue, '.')) {
[$mainPart, $decimalPart] = explode('.', $rawValue);
if (\str_contains((string) $rawValue, '.')) {
[$mainPart, $decimalPart] = explode('.', (string) $rawValue);

$chunks = $this->strSplitNegative($mainPart, self::GROUP_SIZE);
$literalSeparatedNumber = implode('_', $chunks) . '.' . $decimalPart;
Expand Down

0 comments on commit ce5eee9

Please sign in to comment.