-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more return type hints tests for ReflectionFunctionAbstract
- Loading branch information
Showing
4 changed files
with
65 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,45 @@ | ||
<?php | ||
|
||
function returnsInt(): int | ||
{ | ||
} | ||
|
||
function returnsString(): string | ||
{ | ||
} | ||
|
||
function returnsObject(): \stdClass | ||
{ | ||
} | ||
|
||
function returnsNull(): null | ||
{ | ||
} | ||
|
||
function returnsNothing() | ||
{ | ||
} | ||
|
||
function returnsVoid(): void | ||
{ | ||
} | ||
|
||
function returnsNullableInt(): ?int | ||
{ | ||
} | ||
|
||
function returnsNullableString(): ?string | ||
{ | ||
} | ||
|
||
function returnsNullableObject(): ?\stdClass | ||
{ | ||
} | ||
|
||
function returnsUnion(): int|string | ||
{ | ||
} | ||
|
||
function returnsIntersection(): DateTime&DateTimeImmutable | ||
{ | ||
} |
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