Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
70 changed files
with
1,183 additions
and
161 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?php | ||
|
||
namespace Foo; | ||
|
||
class Test | ||
{ | ||
/** | ||
* Constructor comment goes here | ||
* | ||
* @param string $first First param | ||
* @param int $second Second param | ||
* @param Test $third Third param with a longer description | ||
*/ | ||
public function __construct(string $first, int $second, Test $third) | ||
{ | ||
} | ||
|
||
/** | ||
* Function doc | ||
* | ||
* @param SomethingElse $a A param with a different doc type | ||
* @param int|null $b Param with default value | ||
*/ | ||
public function foo(\DateTime $a, int $b = null) | ||
{ | ||
} | ||
|
||
public static function bar($a) | ||
{ | ||
} | ||
|
||
/** | ||
* Method with no params | ||
*/ | ||
public function baz() | ||
{ | ||
} | ||
} | ||
|
||
/** | ||
* @param int $i Global function param one | ||
* @param bool $b Default false param | ||
* @param Test|null ...$things Test things | ||
*/ | ||
function foo(int $i, bool $b = false, Test ...$things = null) | ||
{ | ||
} | ||
|
||
$t = new Test(); | ||
$t = new Test(1, ); | ||
$t->foo(); | ||
$t->foo(1, | ||
$t->foo(1,); | ||
$t->baz(); | ||
|
||
foo( | ||
1, | ||
foo(1, 2, | ||
); | ||
|
||
Test::bar(); | ||
|
||
new $foo(); | ||
new $foo(1, ); | ||
|
||
new NotExist(); |
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
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
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
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
Oops, something went wrong.