Skip to content
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

fixed accessed property before initialization #442

Merged
merged 1 commit into from
May 4, 2023

Conversation

grogy
Copy link
Contributor

@grogy grogy commented May 1, 2023

  • bug fix
  • BC break? no

This is alternative for fixing issue described in #441.

Why am I doing a second PR? Because I think that hitting src/Framework/TestCase.php is not good. That's why I'm defining the property to the default value in the PR.

Why did the code work before? PHP dynamically initialized the property to null. But after adding a type, it starts to fail. Via sample https://3v4l.org/dmghh Commit hash that clogged this problem e445e74b.

Sample error on URL https://github.com/php-parallel-lint/PHP-Parallel-Lint/actions/runs/4834553343/jobs/8615917976

@milo
Copy link
Member

milo commented May 4, 2023

Thank you.

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