@@ -133,38 +133,6 @@ static function (string $className): bool {
133133 return false ;
134134 }
135135
136- // Needs new release of JetBrains/phpstorm-stubs
137- if (
138- // @phpstan-ignore function.impossibleType
139- in_array ($ className , [
140- 'Io \\IoException ' ,
141- 'Io \\Poll \\BackendUnavailableException ' ,
142- 'Io \\Poll \\FailedContextInitializationException ' ,
143- 'Io \\Poll \\FailedPollOperationException ' ,
144- 'Io \\Poll \\FailedPollWaitException ' ,
145- 'Io \\Poll \\FailedHandleAddException ' ,
146- 'Io \\Poll \\FailedWatcherModificationException ' ,
147- 'Io \\Poll \\Handle ' ,
148- 'Io \\Poll \\HandleAlreadyWatchedException ' ,
149- 'Io \\Poll \\InactiveWatcherException ' ,
150- 'Io \\Poll \\InvalidHandleException ' ,
151- 'Io \\Poll \\Backend ' ,
152- 'Io \\Poll \\Context ' ,
153- 'Io \\Poll \\Event ' ,
154- 'Io \\Poll \\PollException ' ,
155- 'Io \\Poll \\Watcher ' ,
156- 'SortDirection ' ,
157- 'StreamError ' ,
158- 'StreamErrorCode ' ,
159- 'StreamErrorMode ' ,
160- 'StreamErrorStore ' ,
161- 'StreamException ' ,
162- 'StreamPollHandle ' ,
163- ], true )
164- ) {
165- return false ;
166- }
167-
168136 // Check only always enabled extensions
169137 return in_array ($ reflection ->getExtensionName (), self ::EXTENSIONS , true );
170138 },
@@ -222,11 +190,6 @@ private function assertSameClassAttributes(CoreReflectionClass $original, Reflec
222190 foreach ($ original ->getMethods () as $ method ) {
223191 $ methodName = $ original ->getName () . '# ' . $ method ->getName ();
224192
225- // Needs new release of JetBrains/phpstorm-stubs
226- if (in_array ($ methodName , ['php_user_filter#seek ' ], true )) {
227- continue ;
228- }
229-
230193 $ stubbedMethod = $ stubbed ->getMethod ($ method ->getName ());
231194 self ::assertNotNull ($ stubbedMethod , $ methodName );
232195
@@ -342,18 +305,6 @@ public static function internalFunctionsProvider(): array
342305 static function (string $ functionName ): bool {
343306 $ reflection = new CoreReflectionFunction ($ functionName );
344307
345- // Needs new release of JetBrains/phpstorm-stubs
346- if (
347- in_array ($ functionName , [
348- 'clamp ' ,
349- 'stream_clear_errors ' ,
350- 'stream_last_errors ' ,
351- 'stream_socket_get_crypto_status ' ,
352- ], true )
353- ) {
354- return false ;
355- }
356-
357308 // Check only always enabled extensions
358309 return in_array ($ reflection ->getExtensionName (), self ::EXTENSIONS , true );
359310 },
@@ -374,18 +325,6 @@ public function testInternalFunctions(string $functionName): void
374325
375326 $ stubbedReflectionParameters = $ stubbedReflection ->getParameters ();
376327
377- // Needs new release of JetBrains/phpstorm-stubs
378- if (
379- in_array ($ functionName , [
380- 'stream_copy_to_stream ' ,
381- 'stream_is_local ' ,
382- 'stream_select ' ,
383- 'stream_socket_pair ' ,
384- ], true )
385- ) {
386- return ;
387- }
388-
389328 self ::assertSame ($ originalReflection ->getNumberOfParameters (), $ stubbedReflection ->getNumberOfParameters (), $ functionName );
390329
391330 foreach ($ originalReflection ->getParameters () as $ parameterNo => $ originalReflectionParameter ) {
@@ -421,18 +360,6 @@ public static function internalConstantsProvider(): array
421360 }
422361
423362 foreach ($ extensionConstants as $ constantName => $ constantValue ) {
424- // Needs new release of JetBrains/phpstorm-stubs
425- if (
426- in_array ($ constantName , [
427- 'ARRAY_FILTER_USE_VALUE ' ,
428- 'STREAM_CRYPTO_STATUS_NONE ' ,
429- 'STREAM_CRYPTO_STATUS_WANT_READ ' ,
430- 'STREAM_CRYPTO_STATUS_WANT_WRITE ' ,
431- ], true )
432- ) {
433- continue ;
434- }
435-
436363 $ provider [] = [$ constantName , $ constantValue , $ extensionName ];
437364 }
438365 }
@@ -880,7 +807,7 @@ public static function dataMethodInPhpVersion(): array
880807 [DatePeriod::class, 'getRecurrences ' , 80100 , true , null , 'int|null ' ],
881808 [DateTimeInterface::class, 'getOffset ' , 79999 , true ],
882809 [DateTimeInterface::class, 'getOffset ' , 80000 , true ],
883- [DateTimeInterface::class, 'getOffset ' , 80100 , true , null , ' int ' ],
810+ [DateTimeInterface::class, 'getOffset ' , 80100 , true ],
884811 [SplFileObject::class, 'fgetss ' , 79999 , true ],
885812 [SplFileObject::class, 'fgetss ' , 80000 , false ],
886813 [Throwable::class, 'getLine ' , 80000 , true , 'int ' ],
0 commit comments