FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Prevent global side-effect in Bug13813IntegrationTest by staabm · Pull Request #4566 · phpstan/phpstan-src · GitHub

Prevent global side-effect in Bug13813IntegrationTest - #4566

Merged
ondrejmirtes merged 2 commits into
phpstan:2.1.xfrom
staabm:fix-test
Nov 19, 2025
Merged

Prevent global side-effect in Bug13813IntegrationTest#4566
ondrejmirtes merged 2 commits into
phpstan:2.1.xfrom
staabm:fix-test

Conversation

staabm commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

No description provided.

staabm marked this pull request as ready for review November 19, 2025 09:16

Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

);
}

error_reporting($oldReporting);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think the:

		$analyzerResult = $this->runAnalyse([
			__DIR__ . '/data/bug-13813.php',
			__DIR__ . '/Bug13813Rule.php',
		]);

should be wrapped in a try-finally block and the restore be done there.

ondrejmirtes merged commit e44856d into phpstan:2.1.x Nov 19, 2025
361 of 366 checks passed

Copy link
Copy Markdown
Member

Thank you!

staabm deleted the fix-test branch November 19, 2025 10:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL