Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Remove invalid ProcessHelper specified usage#20683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

viviengaetan
Copy link
Contributor

Since Symfony 6.0, the ProcessHelper have the$cmd argument from its two methodsrun() andmustRun() typed asarray|Processsource.

When you try to run as described in the documentation with a string, PHP will throw a TypeError

Fatal error: Uncaught TypeError: Symfony\Component\Console\Helper\ProcessHelper::run(): Argument #2 ($cmd) must be of type Symfony\Component\Process\Process|array, string given, called in /app/src/FooCommand.php on line 22 and defined in /app/vendor/symfony/console/Helper/ProcessHelper.php:35

Documentation is invalid since 6.0 up to the latest version.

@javiereguiluz
Copy link
Member

Good catch Gaëtan! Thanks and congrats on your first Symfony Docs contribution 🎉

viviengaetan reacted with hooray emoji

@javiereguiluzjaviereguiluz merged commitf036ebf intosymfony:6.4Feb 24, 2025
3 checks passed
@viviengaetanviviengaetan deleted the fix/console_process_helper_usage branchFebruary 25, 2025 17:22
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@MrYamousMrYamousMrYamous approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

4 participants
@viviengaetan@javiereguiluz@MrYamous@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp