ekino / EkinoNewRelicBundle

Add NewRelic support to Symfony
MIT License
280 stars 104 forks source link

Passing a boolean as the first argument to "Symfony\Component\PropertyAccess\PropertyAccessor::__construct()" is deprecated #255

Closed ghost closed 3 years ago

ghost commented 3 years ago

I'm having this kind of deprecation notice:

Noticed exception 'Ekino\NewRelicBundle\Exception\DeprecationException' with message 'Since symfony/property-access 5.2: Passing a boolean as the first argument to "Symfony\Component\PropertyAccess\PropertyAccessor::__construct()" is deprecated. Pass a combination of bitwise flags instead (i.e an integer).' in /app/vendor/symfony/deprecation-contracts/function.php:25

My config is similar to documentation:

ekino_new_relic:
    enabled: true
    xmit: true
    application_name: '%env(APPLICATION)%'
    api_key: '%env(KEY)%'
    license_key: '%env(LICENSE)%'

I'm not sure where does this notice come from, can you help?

jderusse commented 3 years ago

NewRelic is reporting you a deprecation triggered by something in your app (or your vendors). The issue does not come from NewRelic it self.

You have to check what is calling new PropertyAccessor() with the wrong argument in your app.