Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
140 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
tests/_files/source_with_return_and_array_with_scalars.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
|
||
class Foo | ||
{ | ||
public function one(): array | ||
{ | ||
return [ | ||
'...', | ||
'...', | ||
]; | ||
} | ||
|
||
public function two(): array | ||
{ | ||
return ['...', | ||
'...', | ||
]; | ||
} | ||
|
||
public function three(): array | ||
{ | ||
return [ | ||
|
||
'...', | ||
]; | ||
} | ||
|
||
public function four(): bool | ||
{ | ||
return in_array('...', [ | ||
'...', | ||
'...', | ||
], true); | ||
} | ||
|
||
public function fifth(): array | ||
{ | ||
return | ||
[ | ||
] | ||
; | ||
} | ||
|
||
public function sixth(): int | ||
{ | ||
return | ||
1 | ||
; | ||
} | ||
|
||
public function seventh(): int | ||
{ | ||
return | ||
self | ||
:: | ||
class | ||
; | ||
} | ||
|
||
public function eigth(): void | ||
{ | ||
return | ||
; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters