Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ final class BinaryOpBetweenNumberAndStringRectorTest extends AbstractRectorTestC
{
public function test(): void
{
$this->doTestFiles([__DIR__ . '/Fixture/fixture.php.inc']);
$this->doTestFiles([
__DIR__ . '/Fixture/fixture.php.inc',
__DIR__ . '/Fixture/ignore_concatenation_dot.php.inc',
]);
}

protected function getRectorClass(): string
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Rector\Php\Tests\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector\Fixture;

class IgnoreConcatenationDots
{
public function run()
{
$string = 'this is a string to cancatenate with the number';
$number = 10;
$value = $string . ' ' . $number;
}
}

?>
-----
<?php

namespace Rector\Php\Tests\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector\Fixture;

class IgnoreConcatenationDots
{
public function run()
{
$string = 'this is a string to cancatenate with the number';
$number = 10;
$value = $string . ' ' . $number;
}
}

?>