Skip to content

escapeArgument deprecation error #1023

Closed
@JKingweb

Description

@JKingweb

Steps to reproduce

$this->taskExec("php")->option("-d", "zend.assertions=1")->arg("example.php")->run();

Expected behavior

Robo should run the task without issue

Actual behavior

Robo runs the task and then prints this message:

ERROR: The Robo\Common\ProcessUtils::escapeArgument() method is a copy of a method that was deprecated by Symfony 3.3 and removed in Symfony 4; it will be removed in Robo 2.0.
in ./vendor/consolidation/robo/src/Common/ProcessUtils.php:39

This is despite running Robo 3.0. :P Using ->option() is the source of the problem; I including an argument for clarity because one must otherwise quit PHP with Ctrl+D to make the error appear.

System Configuration

Which O.S. and PHP version are you using?

PHP 8.0.2, Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions