Skip to content

Commit 35ae8af

Browse files
committed
[DI][Security] Prevent unwanted deprecation notices when using Expression Languages
1 parent 6887814 commit 35ae8af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)