Skip to content

[open-telemetry/symfony-sdk-bundle] Deprecated since symfony 7.4 #1799

@MrJuliuss

Description

@MrJuliuss

Hi, there is a deprecated since new Symfony 7.4

Describe your environment

PHP 8.4
Symfony 7.4

Steps to reproduce

Update sf project to 7.4

What is the actual behavior?

Since symfony/config 7.4: Setting a default value to a required node is deprecated. Remove the default value from the node "type" or make it optional.
6 times  Hide context  Show trace
[▼
  "exception" => 
Symfony\Component\ErrorHandler\Exception
\
SilencedErrorContext
 {#4903 ▼
    +count: 6
    -severity: E_USER_DEPRECATED
    trace: {▼
      
/var/www/vendor
/symfony/config/
Definition/Builder/NodeDefinition.php:183
 {▼
        
Symfony\Component\Config\Definition\Builder
\
NodeDefinition->defaultValue(mixed $value): static
 …
        ›     // throw new InvalidDefinitionException(sprintf('The node "%s" cannot be required and have a default value.', $this->name));
        ›    [ trigger_deprecation('symfony/config', '7.4', 'Setting a default value to a required node is deprecated. Remove the default value from the node "%s" or make it optional.', $this->name);](file:///var/www/vendor/symfony/config/Definition/Builder/NodeDefinition.php#L183)
        › }
      }
      
/var/www/vendor
/open-telemetry/symfony-sdk-bundle/
src/OtelSdkBundle/DependencyInjection/Configuration.php:422
 {▼
        › if ($default !== null) {
        ›    [ $node->defaultValue($default);](file:///var/www/vendor/open-telemetry/symfony-sdk-bundle/src/OtelSdkBundle/DependencyInjection/Configuration.php#L422)
        › }
      }
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions