Skip to content

Commit

Permalink
Rollback stubs-rector tweak and remove e2e/define-constant (#2377)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed May 27, 2022
1 parent 2c46d4f commit 38ed8d2
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 24 deletions.
1 change: 0 additions & 1 deletion build/target-repository/.github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
matrix:
php_version: ['7.2', '7.3', '7.4', '8.0', '8.1']
directory:
- 'e2e/define-constant'
- 'e2e/dont-execute-code'
- 'e2e/finalize'
- 'e2e/parse-php7-code'
Expand Down
4 changes: 0 additions & 4 deletions build/target-repository/e2e/define-constant/composer.json

This file was deleted.

9 changes: 0 additions & 9 deletions build/target-repository/e2e/define-constant/rector.php

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum')) {
if (PHP_VERSION_ID < 80100 && ! interface_exists('UnitEnum', false)) {
/**
* @since 8.1
*/
Expand All @@ -13,7 +13,7 @@ public static function cases(): array;
}
}

if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum')) {
if (PHP_VERSION_ID < 80100 && ! interface_exists('BackedEnum', false)) {
/**
* @since 8.1
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType')) {
if (PHP_VERSION_ID < 80000 && ! class_exists('ReflectionUnionType', false)) {
class ReflectionUnionType extends ReflectionType
{
/** @return ReflectionType[] */
Expand All @@ -11,7 +11,7 @@ public function getTypes()
}
}

if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute')) {
if (PHP_VERSION_ID < 80000 && ! class_exists('Attribute', false)) {
#[Attribute(Attribute::TARGET_CLASS)]
class Attribute
{
Expand Down Expand Up @@ -72,7 +72,7 @@ public function __construct($flags = self::TARGET_ALL)
}
}

if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange')) {
if (PHP_VERSION_ID < 80100 && ! class_exists('ReturnTypeWillChange', false)) {
#[Attribute(Attribute::TARGET_METHOD)]
final class ReturnTypeWillChange
{
Expand Down

0 comments on commit 38ed8d2

Please sign in to comment.