Skip to content

Commit

Permalink
Check PhpStorm stubs against the running PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Nov 27, 2021
1 parent a26af8c commit 7f53c23
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function setUp(): void

$this->phpParser = $betterReflection->phpParser();
$this->astLocator = $betterReflection->astLocator();
$this->sourceStubber = new PhpStormStubsSourceStubber($this->phpParser, 80100);
$this->sourceStubber = new PhpStormStubsSourceStubber($this->phpParser, PHP_VERSION_ID);
$this->phpInternalSourceLocator = new PhpInternalSourceLocator($this->astLocator, $this->sourceStubber);
$this->reflector = new DefaultReflector($this->phpInternalSourceLocator);
}
Expand Down Expand Up @@ -213,8 +213,6 @@ private function assertSameMethodAttributes(CoreReflectionMethod $original, Refl
'Directory#read',
'Directory#rewind',
'Directory#close',
'SplFileObject#fputcsv',
'SplTempFileObject#fputcsv',
'WeakReference#create',
], true)
) {
Expand Down Expand Up @@ -324,7 +322,6 @@ public function testInternalFunctions(string $functionName): void
// There are more versions in PHP
if (
in_array($functionName, [
'fputcsv',
'setcookie',
'setrawcookie',
'stream_context_set_option',
Expand Down

0 comments on commit 7f53c23

Please sign in to comment.