Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
@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