mirror of https://github.com/rectorphp/rector.git
Try fix stub ReflectionUnionType not found in CI php 7.2 (#2373)
This commit is contained in:
parent
45eef47f27
commit
03da98750a
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
|
||||
if (! interface_exists('UnitEnum', false)) {
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
|
@ -13,7 +13,7 @@ if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum', false)) {
|
||||
if (! interface_exists('BackedEnum', false)) {
|
||||
/**
|
||||
* @since 8.1
|
||||
*/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
|
||||
if (! class_exists('ReflectionUnionType', false)) {
|
||||
class ReflectionUnionType extends ReflectionType
|
||||
{
|
||||
/** @return ReflectionType[] */
|
||||
|
@ -11,7 +11,7 @@ if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (\PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
|
||||
if (! class_exists('Attribute', false)) {
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Attribute
|
||||
{
|
||||
|
@ -72,7 +72,7 @@ if (\PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
|
|||
}
|
||||
}
|
||||
|
||||
if (\PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange', false)) {
|
||||
if (! class_exists('ReturnTypeWillChange', false)) {
|
||||
#[Attribute(Attribute::TARGET_METHOD)]
|
||||
final class ReturnTypeWillChange
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue