Skip to content

Please increase typephp-ignore window or make it user-configurable #82

Description

@klunejko

Hello,

Just ran into an issue where typephp-ignore wasn't honored, as the tag was 11 frames above the failing check. For now, we've worked around it by extending the class and tagging the overridden method and using that one for tests:

final class IgnoringMoneyAmountSerializer extends MoneyAmountSerializer
{
    /**
     * @typephp-ignore 'not_a_number' deliberately violates from()'s numeric-string @param.
     */
    public function denormalize(
        mixed $data,
        string $type,
        ?string $format = null,
        array $context = [],
    ): mixed {
        return parent::denormalize($data, $type, $format, $context);
    }
}

But would be great if the frame window could instead be changed by the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions