Skip to content

Commit

Permalink
cover single_space_after_construct
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Oct 20, 2023
1 parent 89af5ac commit 8b37144
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Integration/fixtures/scenario0/bad.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@
// Cover compact_nullable_type_declaration.
function sample(? string $str): ? string {}

// Cover single_space_after_construct (default).
throw new \Exception();
// Cover single_space_after_construct (yield_from).
yield from baz();

?>
5 changes: 5 additions & 0 deletions tests/Integration/fixtures/scenario0/good.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ function foo(array $arg) {

// Cover compact_nullable_type_declaration.
function sample(?string $str): ?string {}

// Cover single_space_after_construct (default).
throw new \Exception();
// Cover single_space_after_construct (yield_from).
yield from baz();

0 comments on commit 8b37144

Please sign in to comment.