Skip to content

Commit

Permalink
Not redeclaring polyfilled classes when PHP version is target or above
Browse files Browse the repository at this point in the history
Firtzberg committed Jun 5, 2021
1 parent eca0bf4 commit c77f0f8
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Resources/stubs/UnhandledMatchError.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

class UnhandledMatchError extends Error
{
if (\PHP_VERSION_ID < 80000) {
class UnhandledMatchError extends Error
{
}
}
6 changes: 4 additions & 2 deletions Resources/stubs/ValueError.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

class ValueError extends Error
{
if (\PHP_VERSION_ID < 80000) {
class ValueError extends Error
{
}
}

0 comments on commit c77f0f8

Please sign in to comment.