Skip to content

Commit

Permalink
revert 804087b of vimeo#10026
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Nov 15, 2023
1 parent 211823a commit 471631f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/Traits/ValidCodeAnalysisTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use const PHP_OS;
use const PHP_VERSION;
use const PHP_VERSION_ID;

trait ValidCodeAnalysisTestTrait
{
Expand Down Expand Up @@ -77,20 +76,6 @@ public function testValidCode(
$codebase->enterServerMode();
$codebase->config->visitPreloadedStubFiles($codebase);

// avoid MethodSignatureMismatch for __unserialize/() when extending DateTime
if (PHP_VERSION_ID >= 8_02_00) {
$this->addStubFile(
'stubOne.phpstub',
'<?php
namespace {
interface DateTimeInterface {
public function __unserialize(mixed[] $data) {}
}
}
',
);
}

$file_path = self::$src_dir_path . 'somefile.php';

$this->addFile($file_path, $code);
Expand Down

0 comments on commit 471631f

Please sign in to comment.