Skip to content

Commit f8916a5

Browse files
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 f8916a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)