Skip to content

Commit

Permalink
Added T_YIELD_FROM in LanguageConstructSpacing sniff
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos committed Jul 23, 2017
1 parent 38734cf commit 3a0e401
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function register()
T_REQUIRE_ONCE,
T_NEW,
T_YIELD,
T_YIELD_FROM,
T_THROW,
T_NAMESPACE,
T_USE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ return($blah);
yield $blah;
yield $blah;

yield from $test();
yield from $test();
yield from $test();
yield from $test();

throw new Exception();
throw new Exception();
throw new Exception();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ public function getErrorList()
35 => 1,
38 => 1,
39 => 1,
40 => 2,
40 => 1,
43 => 1,
45 => 1,
47 => 1,
44 => 1,
45 => 2,
48 => 1,
49 => 1,
50 => 1,
52 => 1,
54 => 1,
55 => 1,
58 => 1,
59 => 1,
);

}//end getErrorList()
Expand Down

0 comments on commit 3a0e401

Please sign in to comment.