Skip to content

Failing test >methods['foo_broken']->parameters['lall']->phpDocRaw #62

@BrianHenryIE

Description

@BrianHenryIE

There is a failing test in ParserTest::testSimpleOneClassWithTrait():

static::assertSame(
'array{stdClass: \stdClass, numbers: int|float $lall',
$phpClasses[Dummy8::class]->methods['foo_broken']->parameters['lall']->phpDocRaw
);

* @param array{stdClass: \stdClass, numbers: int|float $lall <foo/>

Failed asserting that two strings are identical.
Expected :'array{stdClass: \stdClass, numbers: int|float $lall'
Actual :'array{stdClass: \stdClass, numbers: int|float $lall '

Image

Can you tell me what the correct value is? "raw" is arguably the entire string. And "broken" suggests a value with invalid syntax is still a valid result, which could mean with or without the <foo/> string.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions