Try fix stub ReflectionUnionType not found in CI php 7.2 (#2373)

This commit is contained in:
Abdul Malik Ikhsan 2022-05-27 21:48:27 +07:00 committed by GitHub
parent 45eef47f27
commit 03da98750a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -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
{