Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 19, 2025

No description provided.

@staabm staabm marked this pull request as ready for review November 19, 2025 09:16
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

);
}

error_reporting($oldReporting);
Copy link
Member

Choose a reason for hiding this comment

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

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 ondrejmirtes merged commit e44856d into phpstan:2.1.x Nov 19, 2025
361 of 366 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the fix-test branch November 19, 2025 10:40
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