Skip to content

Process generator produces mixeds instead of strings #413

Closed
@rudiedirkx

Description

@rudiedirkx
  • symfony/process: v6.4.12
  • phpstan/phpstan: 1.12.6

With Process.stub intact:

foreach ( $process as $type => $buffer ) {
	\PHPStan\dumpType($type); // mixed
	\PHPStan\dumpType($buffer); // mixed
}

Same for $process->getIterator().

If I change the class name in the stub, so it doesn't do anything, both $type and $buffer are string.

Maybe because symfony's Process already does correct annotations? In the class phpdoc and getIterator() phpdoc.

I'm okay with a local hack. How do I fix my Process generator?

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