mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-13 20:12:07 +01:00
Updated Rector to commit 70920b211391beb82fd05c269e6689e50b430988
70920b2113
[PHPStan 2.1.3] Add ReflectionAttribute and ReflectionIntersectionType stub for PHPStan 2.1.3 (#6723)
This commit is contained in:
parent
20f374a489
commit
767bb46afc
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '59d4bca60c0cc1efb8061524e0425454cb432bc8';
|
||||
public const PACKAGE_VERSION = '70920b211391beb82fd05c269e6689e50b430988';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2025-02-07 12:56:52';
|
||||
public const RELEASE_DATE = '2025-02-08 19:18:17';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -11,6 +11,42 @@ if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
|
||||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionAttribute', false)) {
|
||||
class ReflectionAttribute
|
||||
{
|
||||
|
||||
public const IS_INSTANCEOF = 2;
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
}
|
||||
|
||||
public function getTarget(): int
|
||||
{
|
||||
}
|
||||
|
||||
public function isRepeated(): bool
|
||||
{
|
||||
}
|
||||
|
||||
public function getArguments(): array
|
||||
{
|
||||
}
|
||||
|
||||
public function newInstance(): object
|
||||
{
|
||||
}
|
||||
|
||||
private function __clone()
|
||||
{
|
||||
}
|
||||
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Attribute
|
||||
@ -78,3 +114,16 @@ if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange', false)) {
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! class_exists('ReflectionIntersectionType', false)) {
|
||||
class ReflectionIntersectionType extends ReflectionType
|
||||
{
|
||||
|
||||
/** @return ReflectionType[] */
|
||||
public function getTypes()
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user