Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 11, 2024

make the test-suite pass on windows

before this PR:

$ vendor/bin/phpunit
PHPUnit 10.5.38 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.12
Configuration: C:\dvl\Workspace\phpstan-extensions\phpunit.xml

E....                                                               5 / 5 (100%)

Time: 00:01.020, Memory: 86.00 MB

There was 1 error:

1) Symplify\PHPStanExtensions\Tests\ErrorFormatter\SymplifyErrorFormatterTest::testFormatErrors with data set #0 ('Some message', 1, 1, 1, 'C:\dvl\Workspace\phpstan-exte...rt.txt')
TypeError: trim(): Argument #1 ($string) must be of type string, bool given

C:\dvl\Workspace\phpstan-extensions\src\Console\Terminal.php:59
C:\dvl\Workspace\phpstan-extensions\src\Console\Terminal.php:34
C:\dvl\Workspace\phpstan-extensions\src\ErrorFormatter\SymplifyErrorFormatter.php:82
C:\dvl\Workspace\phpstan-extensions\src\ErrorFormatter\SymplifyErrorFormatter.php:113
C:\dvl\Workspace\phpstan-extensions\src\ErrorFormatter\SymplifyErrorFormatter.php:71
C:\dvl\Workspace\phpstan-extensions\src\ErrorFormatter\SymplifyErrorFormatter.php:49
C:\dvl\Workspace\phpstan-extensions\tests\ErrorFormatter\SymplifyErrorFormatterTest.php:28

ERRORS!
Tests: 5, Assertions: 5, Errors: 1.

requires #9

@samsonasik
Copy link
Member

@staabm please rebase

@staabm
Copy link
Contributor Author

staabm commented Nov 11, 2024

done

@TomasVotruba TomasVotruba enabled auto-merge (squash) November 11, 2024 09:34
@TomasVotruba
Copy link
Member

LGTM, thank you 👍

@TomasVotruba TomasVotruba merged commit 072f9f7 into symplify:main Nov 11, 2024
6 checks passed
@staabm staabm deleted the fix branch November 11, 2024 09:41
@samsonasik
Copy link
Member

@TomasVotruba I think new release is needed for latest phpstan 1.x for these 2 packages:

then we can prepare for major phpstan 2.

@TomasVotruba
Copy link
Member

TomasVotruba commented Nov 11, 2024

@samsonasik Start with Rector without PHPStan extension first. We'll handle extension later, as they have less importance.

@samsonasik
Copy link
Member

@TomasVotruba sure, phpstan 2 require php-parser 5 so it will need revisit my old PR:

to be reincorporated ;)

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