Skip to content

Commit

Permalink
Merge pull request #30 from taakberg/symfony-7-compatibility
Browse files Browse the repository at this point in the history
Add support for Symfony 7
  • Loading branch information
jsunier authored Feb 14, 2024
2 parents 76bf5e3 + dba09ca commit 2837869
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
env:
XDEBUG_MODE: coverage
with:
version: 9.6
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_extensions: xdebug
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![License](https://img.shields.io/github/license/Stogon/unleash-bundle.svg?style=for-the-badge)](https://packagist.org/packages/stogon/unleash-bundle)
[![codecov](https://img.shields.io/codecov/c/github/Stogon/unleash-bundle/master?token=NI6FM0TCMS&style=for-the-badge)](https://codecov.io/gh/Stogon/unleash-bundle)

An [Unleash](https://docs.getunleash.io/) bundle for Symfony 5.4+ and 6.4+ applications.
An [Unleash](https://docs.getunleash.io/) bundle for Symfony 5.4+, 6.4+ and 7.0+ applications.

This provide an easy way to implement **feature flags** using [Gitlab Feature Flags Feature](https://docs.gitlab.com/ee/operations/feature_flags.html).

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
"php": "^7.4|^8.0",
"lastguest/murmurhash": "^2.1",
"symfony/cache-contracts": "^2.4|^3.0",
"symfony/config": "^5.4|^6.4",
"symfony/console": "^5.4|^6.4",
"symfony/dependency-injection": "^5.4|^6.4",
"symfony/config": "^5.4|^6.4|^7.0",
"symfony/console": "^5.4|^6.4|^7.0",
"symfony/dependency-injection": "^5.4|^6.4|^7.0",
"symfony/event-dispatcher-contracts": "^2.4|^3.0",
"symfony/http-client-contracts": "^2.4|^3.0",
"symfony/http-kernel": "^5.4.20|^6.4",
"symfony/security-core": "^5.4|^6.4",
"symfony/http-kernel": "^5.4.20|^6.4|^7.0",
"symfony/security-core": "^5.4|^6.4|^7.0",
"twig/twig": "^2.12|^3.0"
},
"require-dev": {
"symfony/var-dumper": "^5.4|^6.4",
"symfony/var-dumper": "^5.4|^6.4|^7.0",
"phpunit/phpunit": "^9.6",
"phpstan/phpstan": "^1.10.0",
"psr/log": "^1|^2|^3",
"friendsofphp/php-cs-fixer": "^3.41"
"friendsofphp/php-cs-fixer": "^3.49"
},
"scripts": {
"cs-fixer": "php-cs-fixer fix --config=.php-cs-fixer.dist.php --diff --dry-run",
Expand Down
2 changes: 1 addition & 1 deletion src/Cache/FeatureCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(FeatureRepository $featureRepository)
$this->featureRepository = $featureRepository;
}

public function warmUp(string $cacheDir, string $buildDir = null): array
public function warmUp(string $cacheDir, ?string $buildDir = null): array
{
$this->featureRepository->getFeatures();

Expand Down
2 changes: 1 addition & 1 deletion src/Unleash.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(
EventDispatcherInterface $eventDispatcher,
FeatureRepository $featureRepository,
iterable $strategiesMapping,
LoggerInterface $logger = null
?LoggerInterface $logger = null
) {
$this->requestStack = $requestStack;
$this->tokenStorage = $tokenStorage;
Expand Down

0 comments on commit 2837869

Please sign in to comment.