Skip to content

Commit 6cc5729

Browse files
[patch-3] Create void-return-functions-with-side-effects.php.inc
the examples assert and passthru are void return functions with side effects and should not be removed
1 parent d7bb039 commit 6cc5729

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Rector\Tests\DeadCode\Rector\Expression\RemoveDeadStmtRector\Fixture;
4+
5+
is_string('foo')
6+
|> assert(...);
7+
8+
sprintf('echo "%s"', 'foo')
9+
|> passthru(...);
10+
11+
?>

0 commit comments

Comments
 (0)