Skip to content

CLI Deprecation Messages in PHP 8.4 #61231

@miqrogroove

Description

@miqrogroove

Symfony version(s) affected

7.3.1

Description

As discussed in #61169 and #61170

When PHP is upgraded above 8.3.x, every attempt to use cache:clear and certain custom Command objects results in CLI deprecation messages. These messages are emitted by var-exporter and Doctrine depending on the configuration. The only situation where they do not appear is with APP_ENV=dev

Various configuration changes and attempts to downgrade Doctrine were not successful. There might be workarounds involving Doctrine < 3.0 or doctrine @dev however those did not seem appropriate for my project.

How to reproduce

  1. Install Symfony 7.3.0+ with PHP 8.4 and doctrine/orm 3.4 or 3.5.
  2. Set APP_ENV=prod
  3. Attempt bin/console cache:clear

Possible Solution

Downgrade to PHP 8.2 or 8.3.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy