-
-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP baseline contains 3 extra spaces per start of the line #8952
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Also, instead of |
I'm not going to debug that 😊 In the transformation there's Box, PHP-Scoper, and Rector involved. Very complex pipeline. I'd say it doesn't matter... About the sprintf - unless we can see a notable difference in a benchmark that's not something worth changing either. |
Oke, the annoying thing is, is that I want to modify the baseline in a script, and now have to take these 3 spaces into account (to not make the diff bigger). Would it be OK to convert the HEREDOC to a regular string? I think the problem comes from that. PS: I could make that PR. |
Btw, that |
Yeah, feel free to try anything to improve it 😊 As a CI artifact in a PR here you get the compiled PHAR so you could easily debug the end result this way. |
Fixes phpstan/phpstan#8952 I think the problem comes from the nowdoc related to Box/Rector.
Fixes phpstan/phpstan#8952 I think the problem comes from the nowdoc related to Box/Rector.
Fixes phpstan/phpstan#8952 I think the problem comes from the nowdoc related to Box/Rector.
Fixes phpstan/phpstan#8952 I think the problem comes from the nowdoc related to Box/Rector.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
PHPStan 1.10.2
I just generated the baseline as PHP file and noticed that every line is prepended with 3 spaces.
Code snippet that reproduces the problem
Expected output
The weird thing is, this is not reflected in the phpstan-src:
https://github.com/phpstan/phpstan-src/blob/8260032bc6b3641ec80a4b11526869b53d250ac6/src/Command/ErrorFormatter/BaselinePhpErrorFormatter.php#L62-L69
But it is in the generated Phar file:
So something goes wrong with the conversion to Phar.
Did PHPStan help you today? Did it make you happy in any way?
As always, one of the best things that happened to the PHP ecosystem!
The text was updated successfully, but these errors were encountered: