File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
rules-tests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Fixture Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Rector \Tests \DeadCode \Rector \Property \RemoveUselessVarTagRector \Fixture ;
4+
5+ class MyClxProductNet_Translate {
6+ /**
7+ * @phpstan-pure
8+ */
9+ public static function create (): self
10+ {
11+ return new self ();
12+ }
13+ }
14+
15+ /** @var MyActionController $this */
16+ /** @var MyClxProductNet_Translate $translator */
17+ $ translator = MyClxProductNet_Translate::create ();
18+ $ url = $ this ->bulkConsumerRegistration ?? "abc " ;
19+
20+ ?>
21+ -----
22+ <?php
23+
24+ namespace Rector \Tests \DeadCode \Rector \Property \RemoveUselessVarTagRector \Fixture ;
25+
26+ class MyClxProductNet_Translate {
27+ /**
28+ * @phpstan-pure
29+ */
30+ public static function create (): self
31+ {
32+ return new self ();
33+ }
34+ }
35+
36+ /** @var MyActionController $this */
37+ $ translator = MyClxProductNet_Translate::create ();
38+ $ url = $ this ->bulkConsumerRegistration ?? "abc " ;
39+
40+ ?>
You can’t perform that action at this time.
0 commit comments