Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions build/target-repository/stubs-rector/Internal/NativeClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,42 @@ public function getTypes()
}
}

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
Expand Down Expand Up @@ -78,3 +114,16 @@ final class ReturnTypeWillChange
{
}
}

if (PHP_VERSION_ID < 80100 && ! class_exists('ReflectionIntersectionType', false)) {
class ReflectionIntersectionType extends ReflectionType
{

/** @return ReflectionType[] */
public function getTypes()
{
return [];
}

}
}