Skip to content

Add PHPDoc and fix PHPStan errors#4

Merged
MarcelloDuarte merged 3 commits intomainfrom
phpdoc
Feb 15, 2026
Merged

Add PHPDoc and fix PHPStan errors#4
MarcelloDuarte merged 3 commits intomainfrom
phpdoc

Conversation

@MarcelloDuarte
Copy link
Contributor

Summary

  • Add PHPDoc blocks to all remaining classes, interfaces, traits, and public/private methods across the streams library (58 files)
  • Fix 7 pre-existing PHPStan errors: add Stream::getValues(), remove @var resource|null annotations that PHPStan misresolved as the IO\Resource interface, and remove a stale baseline entry
  • PHPStan now reports 0 errors

Test plan

  • php-cs-fixer passes on PHP 8.2, 8.3, 8.4, 8.5
  • PHPStan passes with 0 errors on PHP 8.2, 8.3, 8.4, 8.5
  • Pest tests pass on PHP 8.2, 8.3, 8.4, 8.5

Also fix pre-existing PHPStan errors:
- Add Stream::getValues() to resolve interleave() call
- Remove @var resource|null annotations that PHPStan misresolves
  as Phunkie\Streams\IO\Resource in the IO namespace
- Remove stale InfinitePull::toArray() baseline entry
@MarcelloDuarte MarcelloDuarte merged commit f7d8622 into main Feb 15, 2026
12 checks passed
@MarcelloDuarte MarcelloDuarte deleted the phpdoc branch February 15, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant