From 7f53c23d5fb1b6bbb3db544fbcc39f7ff905c23e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Hansl=C3=ADk?= Date: Sat, 27 Nov 2021 12:46:26 +0100 Subject: [PATCH] Check PhpStorm stubs against the running PHP version --- .../SourceStubber/PhpStormStubsSourceStubberTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/unit/SourceLocator/SourceStubber/PhpStormStubsSourceStubberTest.php b/test/unit/SourceLocator/SourceStubber/PhpStormStubsSourceStubberTest.php index 42a027bc3..a8660a2aa 100644 --- a/test/unit/SourceLocator/SourceStubber/PhpStormStubsSourceStubberTest.php +++ b/test/unit/SourceLocator/SourceStubber/PhpStormStubsSourceStubberTest.php @@ -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); } @@ -213,8 +213,6 @@ private function assertSameMethodAttributes(CoreReflectionMethod $original, Refl 'Directory#read', 'Directory#rewind', 'Directory#close', - 'SplFileObject#fputcsv', - 'SplTempFileObject#fputcsv', 'WeakReference#create', ], true) ) { @@ -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',