Skip to content

Symfony\Component\Process\Process::inheritEnvironmentVariables() method is deprecated since Symfony 4.4 #267

@esetnik

Description

@esetnik

Crunz version: x.y.z
v2.0.3
PHP version: x.y.z
v7.3.12
Operating system type and version:
linux
Description
When running the job using Symphony v4.4 or greater a deprecation warning is logged to the console:

 [Deprecation] The
               "Symfony\Component\Process\Process::inheritEnvironmentVariables()
               " method is deprecated since Symfony 4.4, env variables are
               always inherited. File
               /usr/src/app/src/vendor/symfony/process/Process.php, line 1224

How to reproduce
Run any lavary/crunz job

Possible Solution
https://github.com/lavary/crunz/blob/master/src/Process/Process.php#L77
This check should be made more robust to check whether symphony 4.4 or greater is in use.

Additional context

symfony/symfony#32475

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    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