Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15938b4

Browse files
committed
bug #23417 [DI][Security] Prevent unwanted deprecation notices when using Expression Languages (dunglas)
This PR was merged into the 3.2 branch. Discussion ---------- [DI][Security] Prevent unwanted deprecation notices when using Expression Languages | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 052b8c3 [DI][Security] Prevent unwanted deprecation notices when using Expression Languages
2 parents 692acb4 + 052b8c3 commit 15938b4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/Symfony/Component/DependencyInjection/ExpressionLanguage.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\DependencyInjection;
1313

1414
use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
15-
use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface;
1615

1716
/**
1817
* Adds some function to the default ExpressionLanguage.
@@ -23,7 +22,10 @@
2322
*/
2423
class ExpressionLanguage extends BaseExpressionLanguage
2524
{
26-
public function __construct(ParserCacheInterface $cache = null, array $providers = array())
25+
/**
26+
* {@inheritdoc}
27+
*/
28+
public function __construct($cache = null, array $providers = array())
2729
{
2830
// prepend the default provider to let users override it easily
2931
array_unshift($providers, new ExpressionLanguageProvider());

src/Symfony/Component/Security/Core/Authorization/ExpressionLanguage.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\Security\Core\Authorization;
1313

1414
use Symfony\Component\ExpressionLanguage\ExpressionLanguage as BaseExpressionLanguage;
15-
use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface;
1615

1716
/**
1817
* Adds some function to the default ExpressionLanguage.
@@ -23,7 +22,10 @@
2322
*/
2423
class ExpressionLanguage extends BaseExpressionLanguage
2524
{
26-
public function __construct(ParserCacheInterface $cache = null, array $providers = array())
25+
/**
26+
* {@inheritdoc}
27+
*/
28+
public function __construct($cache = null, array $providers = array())
2729
{
2830
// prepend the default provider to let users override it easily
2931
array_unshift($providers, new ExpressionLanguageProvider());

0 commit comments

Comments
 (0)