Skip to content

Conversation

@torchello
Copy link
Contributor

@torchello torchello commented Jun 12, 2025

Hopefully final step for 8.4 readiness (#1477).

@MarcelloDuarte could you please approve?

@torchello
Copy link
Contributor Author

@MarcelloDuarte thanks, I will review the failures

@torchello torchello requested a review from MarcelloDuarte July 11, 2025 20:00
@torchello
Copy link
Contributor Author

@MarcelloDuarte please approve the potential fix

@torchello torchello requested a review from MarcelloDuarte July 14, 2025 00:15
@torchello
Copy link
Contributor Author

@MarcelloDuarte psalm errors fixed 🤞

@torchello
Copy link
Contributor Author

ping @MarcelloDuarte

@torchello
Copy link
Contributor Author

@MarcelloDuarte looks ready for release, wdyt?

Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

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

LGTM, just a little nitpick.

private function addErrorThrowingExampleToSuite(Resource $resource, Suite $suite, \Error $error) : void
{
$reflection = new ReflectionClass(ErrorSpecification::class);
/** @var ReflectionClass<Specification> $reflection */
Copy link
Contributor

Choose a reason for hiding this comment

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

This PHPDoc seems superfluous, $reflection is already of this type (even more specific).

Suggested change
/** @var ReflectionClass<Specification> $reflection */

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to add it to make psalm happy IIRC.

Copy link
Contributor

Choose a reason for hiding this comment

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

I tested it locally and it worked fine. Maybe it was needed before other changes were done? BTW it's just redundant, so not a blocker for me.

@MarcelloDuarte
Copy link
Member

@torchello thanks for this, and apologies for the silence... loads going on at my end.

Do we need to update CHANGES-v8.md?

@torchello
Copy link
Contributor Author

@MarcelloDuarte good point! updated here.

@MarcelloDuarte MarcelloDuarte merged commit b84e344 into phpspec:main Sep 6, 2025
11 checks passed
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.

3 participants