Skip to content
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

Enable Rector in CI and process the entire project #214

Merged
merged 20 commits into from
Jun 28, 2024

Conversation

Kaspiman
Copy link

No description provided.

@butschster butschster self-requested a review June 26, 2024 11:39
@butschster butschster self-assigned this Jun 26, 2024
@butschster butschster added enhancement New feature or request usability labels Jun 26, 2024
@butschster butschster added this to the 1.0 milestone Jun 26, 2024
$batch = 0;
foreach ($events as $event) {
$this->em->delete($event);

if ($batch++ % $batchSize === 0) {
Copy link
Author

Choose a reason for hiding this comment

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

???

Copy link
Member

Choose a reason for hiding this comment

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

Probably there was batch deletion. I want to refactor this.

Copy link
Author

Choose a reason for hiding this comment

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

$batch++ % $batchSize === 0 is always true. It should be like: ++$batch % $batchSize === 0

@@ -58,10 +57,6 @@ private function handlePipeline(ServerRequestInterface $request): ResponseInterf
\assert($handler instanceof HandlerInterface);
$this->position++;

if ($handler === null) {
Copy link
Author

Choose a reason for hiding this comment

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

\assert($handler instanceof HandlerInterface); already do type check

Copy link
Member

Choose a reason for hiding this comment

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

As I see, $handler can be null, so it's better to fix assertion

@@ -29,7 +29,7 @@ final class HtmlDumper extends CliDumper

public function __construct(DumpIdGeneratorInterface $generator)
{
AbstractDumper::__construct(null, null, 0);
AbstractDumper::__construct(null, null, 0); // CliDumper? parent??
Copy link
Author

Choose a reason for hiding this comment

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

Question?

Copy link
Member

Choose a reason for hiding this comment

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

No, AbstractDumper

@butschster
Copy link
Member

Cool, Thx for a great work!

@butschster butschster merged commit 012f878 into buggregator:master Jun 28, 2024
7 checks passed
@Kaspiman Kaspiman deleted the rector-enable branch June 28, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request usability
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants