Skip to content

Run tests for PHP 8.4 #1493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Run tests for PHP 8.4 #1493

wants to merge 3 commits into from

Conversation

torchello
Copy link

@torchello torchello commented Jun 12, 2025

Hopefully final step for 8.4 readiness (#1477).

@MarcelloDuarte could you please approve?

@torchello
Copy link
Author

@MarcelloDuarte thanks, I will review the failures

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

@MarcelloDuarte please approve the potential fix

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

@MarcelloDuarte psalm errors fixed 🤞

@torchello
Copy link
Author

ping @MarcelloDuarte

@torchello
Copy link
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.

@@ -105,6 +105,7 @@ private function lineIsInsideMethod(int $line, ReflectionMethod $method): bool
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
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.

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