Skip to content

Add symfony 6 comptability #54

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

Merged
merged 4 commits into from
Jul 25, 2022

Conversation

Prokyonn
Copy link
Contributor

No description provided.

@Prokyonn Prokyonn force-pushed the enhancement/symfony-6 branch from a03497b to e870f1f Compare July 25, 2022 06:40
@Prokyonn Prokyonn force-pushed the enhancement/symfony-6 branch 2 times, most recently from 41ece89 to a9a00c3 Compare July 25, 2022 11:52
@Prokyonn Prokyonn force-pushed the enhancement/symfony-6 branch from a9a00c3 to 50b894e Compare July 25, 2022 11:55
@@ -124,7 +128,11 @@ public function testExecuteWithFail()
$this->assertEquals($intervalTask->getWorkload(), $task->getWorkload());
$this->assertLessThanOrEqual($intervalTask->getFirstExecution(), $task->getFirstExecution());
$this->assertLessThanOrEqual($intervalTask->getLastExecution(), $task->getLastExecution());
$this->assertEquals($intervalTask->getInterval(), $task->getInterval());
Copy link
Contributor Author

@Prokyonn Prokyonn Jul 25, 2022

Choose a reason for hiding this comment

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

asserting equals between the interval object resulted in an error: https://github.com/php-task/TaskBundle/runs/7495173211?check_suite_focus=true
honestly I've no idea why this happens in the CI, locally everything works as expected 😅

but I guess the new additional lines test the same thing and it is working now also in the CI :)

Copy link
Member

Choose a reason for hiding this comment

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

@Prokyonn is there a __toString method? i would compare at least this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wachterjohannes https://github.com/dragonmantank/cron-expression/blob/master/src/Cron/CronExpression.php#L384-L387 yes, but this is already implicitly tested in line 132:

$this->assertEquals($intervalTask->getInterval()->getExpression(), $task->getInterval()->getExpression());

Copy link
Member

Choose a reason for hiding this comment

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

OK then all right - should we tag the library first?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah makes sense to add a version instead of the dev branch before merging :)

@Prokyonn Prokyonn marked this pull request as ready for review July 25, 2022 12:06
@Prokyonn Prokyonn changed the title Draft: Add symfony 6 comptability Add symfony 6 comptability Jul 25, 2022
@Prokyonn Prokyonn requested a review from wachterjohannes July 25, 2022 12:06
composer.json Outdated
"symfony/process": "^2.8 || ^3.4 || ^4.0 || ^5.0",
"doctrine/orm": "^2.5"
"php": "^8.0 || ^8.1",
"php-task/php-task": "dev-master as 2.0",
Copy link
Member

Choose a reason for hiding this comment

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

tag before merging

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wachterjohannes wachterjohannes merged commit aad451d into php-task:master Jul 25, 2022
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.

2 participants