Skip to content

Conversation

@stof
Copy link
Member

@stof stof commented Apr 17, 2025

This makes it easier to identify which package has an invalid changelog as PHPUnit displays the name of the failing case in its output (which is easier to understand than figuring out which component has the index 23 in the data provider).

See https://github.com/async-aws/aws/actions/runs/14520270313/job/40739268792?pr=1879#step:8:137 for the output with the old test

This makes it easier to identify which package has an invalid changelog
as PHPUnit displays the name of the failing case in its output (which is
easier to understand than figuring out which component has the index 23
in the data provider).
->in(\dirname(__DIR__, 2) . '/src')
->name('CHANGELOG.md');

/** @var \SplFileInfo $file */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finder defines its iterable type as the Symfony\Component\Finder\SplFileInfo, which is the class defining getRelativePath (as it is relative to the folder in which the finder is searching).
This @var was probably added at a time when Symfony did not have the phpdoc annotation providing the info.

@jderusse jderusse merged commit 467fe26 into async-aws:master Apr 17, 2025
16 of 17 checks passed
@stof stof deleted the improve_changelog_test branch April 18, 2025 08:20
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.

2 participants