mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 14:08:46 +02:00
N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)
* Update Symfony lib to version ~6.4.0 * Update code missing return type * Add an iTop general configuration entry to store application secret (Symfony mandatory parameter) * Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
@@ -22,17 +22,16 @@ use Symfony\Component\DependencyInjection\Exception\RuntimeException;
|
||||
*/
|
||||
class CheckArgumentsValidityPass extends AbstractRecursivePass
|
||||
{
|
||||
private $throwExceptions;
|
||||
protected bool $skipScalars = true;
|
||||
|
||||
private bool $throwExceptions;
|
||||
|
||||
public function __construct(bool $throwExceptions = true)
|
||||
{
|
||||
$this->throwExceptions = $throwExceptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function processValue($value, bool $isRoot = false)
|
||||
protected function processValue(mixed $value, bool $isRoot = false): mixed
|
||||
{
|
||||
if (!$value instanceof Definition) {
|
||||
return parent::processValue($value, $isRoot);
|
||||
@@ -41,7 +40,7 @@ class CheckArgumentsValidityPass extends AbstractRecursivePass
|
||||
$i = 0;
|
||||
$hasNamedArgs = false;
|
||||
foreach ($value->getArguments() as $k => $v) {
|
||||
if (\PHP_VERSION_ID >= 80000 && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
|
||||
if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
|
||||
$hasNamedArgs = true;
|
||||
continue;
|
||||
}
|
||||
@@ -79,7 +78,7 @@ class CheckArgumentsValidityPass extends AbstractRecursivePass
|
||||
$i = 0;
|
||||
$hasNamedArgs = false;
|
||||
foreach ($methodCall[1] as $k => $v) {
|
||||
if (\PHP_VERSION_ID >= 80000 && preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
|
||||
if (preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $k)) {
|
||||
$hasNamedArgs = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user