Skip to content

Commit ef56c6f

Browse files
committed
Add tentative return type to Directory::current()
1 parent 9cb6b9e commit ef56c6f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

ext/spl/spl_directory.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function rewind(): void {}
175175
public function key(): string {}
176176

177177
/** @tentative-return-type */
178-
public function current(): string|SplFileInfo|FilesystemIterator {}
178+
public function current(): string|SplFileInfo|static {}
179179

180180
/** @tentative-return-type */
181181
public function getFlags(): int {}

ext/spl/spl_directory_arginfo.h

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)