E52D fixed accessed property before initialization by grogy · Pull Request #442 · nette/tester · GitHub
[go: up one dir, main page]

Skip to content

fixed accessed property before initialization#442

Merged
milo merged 1 commit intonette:masterfrom
grogy:fixed-accessed-before-initialization
May 4, 2023
Merged

fixed accessed property before initialization#442
milo merged 1 commit intonette:masterfrom
grogy:fixed-accessed-before-initialization

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

0