-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeQuality] Handle crash on BinaryOp/Mul and variable variable: $$n…
…ame on IntvalToTypeCastRector (#3608) * [CodeQuality] Handle crash on BinaryOp/Mul on IntvalToTypeCastRector * Fixed * [ci-review] Rector Rectify * Revert [ci-review] Rector Rectify This reverts commit a18c051. * Revert Fixed This reverts commit 93f6219. * Handle with re-printed node * clean up * Final touch: comment * [ci-review] Rector Rectify * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
54a340c
commit 3a9bebf
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...tests/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector/Fixture/in_mul_binary_op.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector\Fixture; | ||
|
||
class InMulBinaryOp | ||
{ | ||
public function run() | ||
{ | ||
$$name = GetTime(time()-86400*intval($FILTER[$bdays])); | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector\Fixture; | ||
|
||
class InMulBinaryOp | ||
{ | ||
public function run() | ||
{ | ||
$$name = GetTime(time()-86400*(int) $FILTER[$bdays]); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters