Skip to content

"Use of undefined constant STDIN - assumed 'STDIN'" #37124

@francoism90

Description

@francoism90

Symfony version(s) affected: symfony/console v5.1.0

Description
I'm keep getting his error on Laravel, I don't know if this should be reported to them or if this is a Symfony issue?

How to reproduce
Update to latest deps.

Possible Solution
I don't think the constant exists when using it as a dep, shouldn't it be checked if it is?

Additional context
Converting the constant works fine, but I don't think this is the solution:

public function __construct(OutputInterface $output, $input = 'STDIN')
    {
        $this->output = $output;
        $this->input = $input;
    }

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