-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add support for Symfony 7 #55
Merged
wachterjohannes
merged 7 commits into
php-task:master
from
alexander-schranz:feature/deps-updates
Jul 16, 2024
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1c26888
Add support for Symfony 7
alexander-schranz afcf2f5
Upgrade PHPUnit
alexander-schranz 76f5e43
Run annotation registry only when available
alexander-schranz 222f002
Add return types to PHPUnit setup
alexander-schranz dce4c0b
Add missing prophecy trait
alexander-schranz af47700
Remove PHPUnit 11 support
alexander-schranz 0a905c2
Reformat phpunit.xml.dist file
alexander-schranz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ composer.phar | |
/tests/app/logs/ | ||
/tests/app/data/ | ||
var/ | ||
|
||
.phpunit.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,25 @@ | |
} | ||
], | ||
"require": { | ||
"php": "^8.0 || ^8.1", | ||
"php": "^8.0", | ||
"php-task/php-task": "^2.0", | ||
"symfony/http-kernel": "^5.4 || ^6.0", | ||
"symfony/dependency-injection": "^5.4 || ^6.0", | ||
"symfony/expression-language": "^5.4 || ^6.0", | ||
"symfony/config": "^5.4 || ^6.0", | ||
"symfony/console": "^5.4 || ^6.0", | ||
"symfony/process": "^5.4 || ^6.0", | ||
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/config": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/console": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/process": "^5.4 || ^6.0 || ^7.0", | ||
"doctrine/orm": "^2.5.3" | ||
}, | ||
"require-dev": { | ||
"symfony/framework-bundle": "^5.4 || ^6.0", | ||
"symfony/finder": "^5.4 || ^6.0", | ||
"symfony/yaml": "^5.4 || ^6.0", | ||
"symfony/phpunit-bridge": "^5.4 || ^6.0", | ||
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/finder": "^5.4 || ^6.0 || ^7.0", | ||
"symfony/yaml": "^5.4 || ^6.0 || ^7.0", | ||
"doctrine/doctrine-bundle": "^1.5 || ^2.0", | ||
"doctrine/data-fixtures": "^1.3.3" | ||
"doctrine/data-fixtures": "^1.3.3", | ||
"phpunit/phpunit": "^9.6.5 || ^10", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PHPUnit 11 is not supported yet by Symfony because of a error / exception handler registration conflict |
||
"phpspec/prophecy": "^1.14", | ||
"phpspec/prophecy-phpunit": "^2.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" | ||
backupGlobals="false" | ||
colors="true" | ||
bootstrap="tests/bootstrap.php"> | ||
<php> | ||
<ini name="error_reporting" value="-1" /> | ||
<ini name="date.timezone" value="UTC" /> | ||
<server name="KERNEL_DIR" value="tests/app" /> | ||
<server name="KERNEL_CLASS" value="TestKernel" /> | ||
</php> | ||
|
||
<testsuites> | ||
<testsuite name="php-task Library Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>./</directory> | ||
<exclude> | ||
<directory>./vendor</directory> | ||
<directory>./tests</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ public function __construct($name, TaskRunnerInterface $runner, TaskSchedulerInt | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function configure() | ||
protected function configure(): void | ||
{ | ||
$this->setDescription('Run pending tasks') | ||
->setHelp(<<<'EOT' | ||
|
@@ -63,7 +63,7 @@ protected function configure() | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small but required BC Break for Symfony 7. |
||
{ | ||
$this->runner->runTasks(); | ||
$this->scheduler->scheduleTasks(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upgrade to doctrine/orm 3 can not be done yet as inserting a "Single Entity" via
entityManager->flush($entity);
is not longer supported.