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:
Tomas Votruba 2025-02-08 12:20:42 +00:00
parent 20f374a489
commit 767bb46afc
3 changed files with 52 additions and 3 deletions

View File

@ -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
*/

View File

@ -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 [];
}
}
}

File diff suppressed because one or more lines are too long