Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 8, 2024

drive by cleanup, while looking into implications of phpstan/phpstan#10693

@@ -1307,13 +1307,11 @@ public function testBug10538(): void
private function runAnalyse(string $file, ?array $allAnalysedFiles = null): array
{
$file = $this->getFileHelper()->normalizePath($file);
/** @var Analyser $analyser */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

inline @var is no longer necessary. even PHPStorm learnt to autocompletes it in the meantime

$errors = $analyser->analyse([$file], null, null, true, $allAnalysedFiles)->getErrors();
foreach ($errors as $error) {
$this->assertSame($fileHelper->normalizePath($file), $error->getFilePath());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the path was already normalized in line 1309

@staabm staabm marked this pull request as ready for review March 8, 2024 10:21
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 6ad6fc9 into phpstan:1.10.x Mar 16, 2024
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the getfile branch March 16, 2024 19:00
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