File tree Expand file tree Collapse file tree 2 files changed +64
-0
lines changed
Expand file tree Collapse file tree 2 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace TestMe \Really ;
4+
5+ #[SomeAttribute]
6+ readonly class Foo {
7+
8+ /**
9+ * This is a docblock.
10+ *
11+ * @param Type $param Description.
12+ *
13+ * @return void
14+ */
15+ public function echo ( (D &N )|false $ param ) {
16+ $ var ??= '' ;
17+
18+ switch ( true ) {
19+ case 1 :
20+ $ brackets = [$ var ];
21+ break ;
22+ default :
23+ $ brackets [] = <<<'NOW'
24+ Some text
25+ NOW;
26+ break ;
27+ }
28+ }
29+ }
30+
31+ (new Foo )->echo (param: false );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace TestMe\Really;
4+
5+ #[SomeAttribute]
6+ readonly class Foo
7+ {
8+
9+ /**
10+ * This is a docblock.
11+ *
12+ * @param Type $param Description.
13+ *
14+ * @return void
15+ */
16+ public function echo((D&N)|false $param)
17+ {
18+ $var ??= '';
19+
20+ switch (true) {
21+ case 1:
22+ $brackets = [$var];
23+ break;
24+ default:
25+ $brackets[] = <<<'NOW'
26+ Some text
27+ NOW;
28+ break;
29+ }
30+ }
31+ }
32+
33+ (new Foo)->echo(param: false);
You can’t perform that action at this time.
0 commit comments