Skip to content

Commit

Permalink
Merge pull request #89 from abame/symfony-seven-compatibility
Browse files Browse the repository at this point in the history
Symfony 7.0 compatibility
  • Loading branch information
eko committed Dec 29, 2023
2 parents e39da78 + 538cd2a commit f57ad60
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -29,6 +29,7 @@ jobs:
- "4.4.x"
- "5.4.x"
- "6.0.x"
- "7.0.x"
dependencies:
- "highest"
include:
Expand Down
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Expand Up @@ -25,9 +25,9 @@ class Configuration implements ConfigurationInterface
/**
* Builds configuration tree.
*
* @return \Symfony\Component\Config\Definition\Builder\TreeBuilder A tree builder instance
* @return TreeBuilder A tree builder instance
*/
public function getConfigTreeBuilder()
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('eko_feed');

Expand Down
2 changes: 1 addition & 1 deletion EkoFeedBundle.php
Expand Up @@ -27,7 +27,7 @@ class EkoFeedBundle extends Bundle
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container)
public function build(ContainerBuilder $container): void
{
parent::build($container);

Expand Down
3 changes: 0 additions & 3 deletions Feed/FeedManager.php
Expand Up @@ -10,7 +10,6 @@

namespace Eko\FeedBundle\Feed;

use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\Routing\RouterInterface;

/**
Expand All @@ -22,8 +21,6 @@
*/
class FeedManager
{
use ContainerAwareTrait;

/**
* @var array
*/
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Expand Up @@ -13,16 +13,16 @@
],
"require": {
"php": "^7.2 || ^8.0",
"symfony/framework-bundle": "^4.4|^5.3|^6.0",
"symfony/translation": "^4.4|^5.3|^6.0",
"symfony/framework-bundle": "^4.4|^5.3|^6.0|^7.0",
"symfony/translation": "^4.4|^5.3|^6.0|^7.0",
"laminas/laminas-feed": "^2.4"
},
"require-dev": {
"doctrine/orm": "^2.7",
"phpunit/phpunit": "^8.5 || ^9.5"
"doctrine/orm": "^2.17",
"phpunit/phpunit": "^8.5 || ^9.5 || ^10.5"
},
"suggest": {
"doctrine/orm": "~2.7"
"doctrine/orm": "~2.17"
},
"autoload": {
"psr-4": { "Eko\\FeedBundle\\": "" }
Expand Down
32 changes: 15 additions & 17 deletions phpunit.xml.dist
@@ -1,19 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="Tests/bootstrap.php">
<testsuites>
<testsuite name="FeedBundle Tests">
<directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="Tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="FeedBundle Tests">
<directory suffix="Test.php">./Tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./</directory>
</include>
<exclude>
<directory>./Tests</directory>
<directory>./vendor</directory>
</exclude>
</source>
</phpunit>

0 comments on commit f57ad60

Please sign in to comment.