File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tests/Core/Tokenizers/PHP Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -114,19 +114,19 @@ $arrowWithUnionReturn = fn($param) : int|true => $param | 10;
114
114
$ arrowWithUnionReturn = fn ($ param ) : string |FALSE => $ param | 10 ;
115
115
116
116
/* testIntersectionParamType */
117
- $ arrowWithUnionParam = fn (Traversable &Countable $ param ) : int => (new SomeClass ($ param ))->getValue ();
117
+ $ arrowWithIntersectionParam = fn (Traversable &Countable $ param ) : int => (new SomeClass ($ param ))->getValue ();
118
118
119
119
/* testIntersectionReturnType */
120
- $ arrowWithUnionReturn = fn ($ param ) : \MyFoo &SomeInterface => new SomeClass ($ param );
120
+ $ arrowWithIntersectionReturn = fn ($ param ) : \MyFoo &SomeInterface => new SomeClass ($ param );
121
121
122
122
/* testDNFParamType */
123
- $ arrowWithUnionParam = fn ((Traversable &Countable )|null $ param ) : SomeClass => new SomeClass ($ param ) ?? null ;
123
+ $ arrowWithDNFParam = fn ((Traversable &Countable )|null $ param ) : SomeClass => new SomeClass ($ param ) ?? null ;
124
124
125
125
/* testDNFReturnType */
126
- $ arrowWithUnionReturn = fn ($ param ) : false |(\MyFoo &SomeInterface ) => new \MyFoo ($ param ) ?? false ;
126
+ $ arrowWithDNFReturn = fn ($ param ) : false |(\MyFoo &SomeInterface ) => new \MyFoo ($ param ) ?? false ;
127
127
128
128
/* testDNFParamTypeWithReturnByRef */
129
- $ arrowWithParamReturnByRef = fn &((A &B )|null $ param ) => $ param * 10 ;
129
+ $ arrowWithDNFParamReturnByRef = fn &((A &B )|null $ param ) => $ param * 10 ;
130
130
131
131
/* testTernary */
132
132
$ fn = fn ($ a ) => $ a ? /* testTernaryThen */ fn () : string => 'a ' : /* testTernaryElse */ fn () : string => 'b ' ;
You can’t perform that action at this time.
0 commit comments