Skip to content

Conversation

@caufang
Copy link
Contributor

@caufang caufang commented Oct 25, 2025

$error = new Error('Test', 'Foo.php', 12, filePath: self::DIRECTORY_PATH . '/rel/Foo.php');
$formatter->formatErrors(new AnalysisResult([$error], [], [], [], [], false, null, true, 0, false, []), $this->getOutput(true));

$this->assertStringContainsString('at rel/Foo.php:12', $this->getOutputContent(true));
Copy link
Member

Choose a reason for hiding this comment

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

This test is not failing even if I revert the change in src/.

@caufang
Copy link
Contributor Author

caufang commented Oct 26, 2025

Sorry about that, I think I have the test corrected.

@ondrejmirtes ondrejmirtes merged commit eae961c into phpstan:2.1.x Oct 26, 2025
538 of 552 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@caufang caufang deleted the fix-13697 branch October 27, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants