Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented May 2, 2025

No description provided.

@TomasVotruba TomasVotruba changed the title tv picks tv picksa[parallel] bump default threads from 16 to 32 to keep up with modern technology May 2, 2025
@TomasVotruba TomasVotruba changed the title tv picksa[parallel] bump default threads from 16 to 32 to keep up with modern technology [parallel] bump default threads from 16 to 32 to keep up with modern technology May 2, 2025
* see"infinite recursion" in https://github.com/nikic/PHP-Parser/blob/master/doc/component/Walking_the_AST.markdown
*/
public function leaveNode(Node $node): array|int|Node|null
final public function leaveNode(Node $node): array|int|Node|null
Copy link
Member

Choose a reason for hiding this comment

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

It seems bc break

Copy link
Member Author

Choose a reason for hiding this comment

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

On purpose, this should have never been allowed.

@samsonasik
Copy link
Member

I will check the rector-downgrade-php unit test error, it possibly due to latest phpstan

@TomasVotruba
Copy link
Member Author

TomasVotruba commented May 2, 2025

I will check the rector-downgrade-php unit test error, it possibly due to latest phpstan

Thanks 👍 PHPStan x.14 now returns string instead of mixed even if native type declaration is missing.

@samsonasik
Copy link
Member

It seems due to this change phpstan/phpstan-src@3854cbc

It seems the only way we can do is just follow it since it not error when set as magic https://3v4l.org/IrE2q#v7.4.33

I will update the fixture.

@samsonasik
Copy link
Member

@samsonasik
Copy link
Member

I restarted the CI, seems green now 👍

@samsonasik
Copy link
Member

@TomasVotruba rebase is needed 👍

@TomasVotruba
Copy link
Member Author

Thanks 👍

@TomasVotruba TomasVotruba merged commit c475fc7 into main May 2, 2025
45 checks passed
@TomasVotruba TomasVotruba deleted the tv-picks branch May 2, 2025 19:39
])
->withRootFiles()
->withImportNames(removeUnusedImports: true)
->withImportNames()
Copy link
Member

Choose a reason for hiding this comment

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

It seems you were testing speed? I think this can be re-enabled again, it already fast on rector-src, and this also enabled in other rector-* packages rector.php.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought the removeUnusedImports: true is enabled by default.

I think we should enable it, so default behavior is the one with least work. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

imo, current optional implementation already correct, it should be optional, as it "remove things" that can possibly there on purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, I'll restore it here then.

@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants