Skip to content

Commit c77f0f8

Browse files
committed
Not redeclaring polyfilled classes when PHP version is target or above
1 parent eca0bf4 commit c77f0f8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3-
class UnhandledMatchError extends Error
4-
{
3+
if (\PHP_VERSION_ID < 80000) {
4+
class UnhandledMatchError extends Error
5+
{
6+
}
57
}

Resources/stubs/ValueError.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3-
class ValueError extends Error
4-
{
3+
if (\PHP_VERSION_ID < 80000) {
4+
class ValueError extends Error
5+
{
6+
}
57
}

0 commit comments

Comments
 (0)