Skip to content

Commit

Permalink
Fix some stub docblocks that were thowing parse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robchett committed Nov 3, 2023
1 parent 70a83c8 commit f507838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stubs/CoreGenericIterators.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class EmptyIterator implements Iterator {
}

/**
* @template-extends SeekableIterator<string, FilesystemIterator|SplFileInfo|string>
* @template-extends DirectoryIterator<string, FilesystemIterator|SplFileInfo|string>
*/
class FilesystemIterator extends DirectoryIterator
{
Expand Down Expand Up @@ -523,7 +523,7 @@ class FilesystemIterator extends DirectoryIterator


/**
* @template-extends SeekableIterator<string, GlobIterator|SplFileInfo|string>
* @template-extends FilesystemIterator<string, GlobIterator|SplFileInfo|string>
*/
class GlobIterator extends FilesystemIterator implements Countable {
/**
Expand Down
2 changes: 1 addition & 1 deletion stubs/Reflection.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class ReflectionProperty implements Reflector
public function isDefault(): bool {}

/**
* @return int-mask-of<self::IS_>
* @return int-mask-of<self::IS_*>
* @psalm-pure
*/
public function getModifiers(): int {}
Expand Down

0 comments on commit f507838

Please sign in to comment.