Skip to content

Help deprecation logged as error #283

@mpoiriert

Description

@mpoiriert

We have a lot of deprecation log as error in new relic.

Example:

strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated

This is happening since we migrate to symfony 4 -> 5, php 7 -> 8.

Deprecation log is disable.

We also have a lot of those:

Return type of Money\Currencies\ISOCurrencies::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

We don't have controller over all the library.

It's not really a deprecation but should probably treated as such...

Is there a way to ignore ReturnTypeWillChange error ?

loging, monogolog, deprecations are all disable in the ekino_new_relic configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions