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

Php 8 symfony7 #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DependencyInjection/QueueExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function load(array $config, ContainerBuilder $container)
*
* @return string
*/
public function getAlias()
public function getAlias(): string
{
return 'sfcod_queue';
}
Expand Down
3 changes: 2 additions & 1 deletion SfCodQueueBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use SfCod\QueueBundle\DependencyInjection\Compiler\JobCompilerPass;
use SfCod\QueueBundle\DependencyInjection\QueueExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
Expand All @@ -21,7 +22,7 @@ class SfCodQueueBundle extends Bundle
*
* @return QueueExtension|\Symfony\Component\DependencyInjection\Extension\ExtensionInterface|null
*/
public function getContainerExtension()
public function getContainerExtension(): ?ExtensionInterface
{
return new QueueExtension();
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Service/JobQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class JobQueueTest extends TestCase
/**
* Set up test
*/
protected function setUp()
protected function setUp(): void
{
$this->configure();
}
Expand Down
19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@
}
],
"require": {
"php": "^7.4",
"symfony/framework-bundle": "^5.4",
"symfony/monolog-bundle": "^3.1",
"symfony/process": "^5.4",
"symfony/dotenv": "^5.4"
"php": "^8.0",
"symfony/framework-bundle": "^7.1.3",
"symfony/monolog-bundle": "^3.10.0",
"symfony/process": "^7.1.3",
"symfony/dotenv": "^7.1.3"
},
"require-dev": {
"symfony/phpunit-bridge": "^5.4",
"friendsofphp/php-cs-fixer": "^2.8",
"helmich/mongomock": "^2.1",
"phpunit/phpunit": "^7.5"
"symfony/phpunit-bridge": "^7.1.3",
"friendsofphp/php-cs-fixer": "3.62.0",
"helmich/mongomock": "^2.7.0",
"phpunit/phpunit": "^9.5",
"predis/predis": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down