We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f616b commit 8356533Copy full SHA for 8356533
1 file changed
utils-tests/Rector/MakeUseOfContainsStmtsRector/Fixture/contains_stmts_contract.php.inc
@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+namespace Rector\Utils\Tests\Rector\MakeUseOfContainsStmtsRector\Fixture;
4
5
+use PhpParser\Node\ContainsStmts;
6
7
+final class ContaintsStmtsContract
8
+{
9
+ public function process(ContainsStmts $containsStmts): bool
10
+ {
11
+ if ($containsStmts->stmts === null) {
12
+ return false;
13
+ }
14
15
+ return true;
16
17
+}
18
19
+?>
20
+-----
21
22
23
24
25
26
27
28
29
30
31
+ if ($containsStmts->getStmts() === []) {
32
33
34
35
36
37
38
39
0 commit comments