-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring BuiltinMethodReflection from the dead for BC reasons
- Loading branch information
1 parent
dacb505
commit 3863da9
Showing
1 changed file
with
63 additions
and
0 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,63 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace PHPStan\Reflection\Php; | ||
|
||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass; | ||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum; | ||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionIntersectionType; | ||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod; | ||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionNamedType; | ||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionParameter; | ||
use PHPStan\BetterReflection\Reflection\Adapter\ReflectionUnionType; | ||
use PHPStan\TrinaryLogic; | ||
|
||
/** | ||
* @deprecated | ||
*/ | ||
interface BuiltinMethodReflection | ||
{ | ||
|
||
public function getName(): string; | ||
|
||
public function getReflection(): ?ReflectionMethod; | ||
|
||
public function getFileName(): ?string; | ||
|
||
public function getDeclaringClass(): ReflectionClass|ReflectionEnum; | ||
|
||
public function getStartLine(): ?int; | ||
|
||
Check failure on line 29 in src/Reflection/Php/BuiltinMethodReflection.php GitHub Actions / PHPStan (7.2, ubuntu-latest)
Check failure on line 29 in src/Reflection/Php/BuiltinMethodReflection.php GitHub Actions / PHPStan (7.2, windows-latest)
Check failure on line 29 in src/Reflection/Php/BuiltinMethodReflection.php GitHub Actions / PHPStan (7.3, ubuntu-latest)
Check failure on line 29 in src/Reflection/Php/BuiltinMethodReflection.php GitHub Actions / PHPStan (7.3, windows-latest)
|
||
public function getEndLine(): ?int; | ||
|
||
public function getDocComment(): ?string; | ||
|
||
public function isStatic(): bool; | ||
|
||
public function isPrivate(): bool; | ||
|
||
public function isPublic(): bool; | ||
|
||
public function getPrototype(): self; | ||
|
||
public function isDeprecated(): TrinaryLogic; | ||
|
||
public function isVariadic(): bool; | ||
|
||
public function getReturnType(): ReflectionIntersectionType|ReflectionNamedType|ReflectionUnionType|null; | ||
|
||
public function getTentativeReturnType(): ReflectionIntersectionType|ReflectionNamedType|ReflectionUnionType|null; | ||
|
||
/** | ||
* @return ReflectionParameter[] | ||
*/ | ||
public function getParameters(): array; | ||
|
||
public function isFinal(): bool; | ||
|
||
public function isInternal(): bool; | ||
|
||
public function isAbstract(): bool; | ||
|
||
public function returnsByReference(): TrinaryLogic; | ||
|
||
} |