Skip to content

Don"t warn on mocking final class ig bypass-final is installed #1990

@etshy

Description

@etshy
Subject Details
Plugin Php Inspections (EA Extended)
Language level e.g. PHP 8.1

Current behaviour

Inspection on createMock on final class while dg/bypass-finals is installed and configured in default phpunit config.
"[EA] Causes reflection errors as the referenced class is final."

Expected behaviour

No inspection when dg/bypass-finals is installed and configured

Environment details

Build #PS-252.26830.95, built on October 2, 2025

Runtime version: 21.0.8+1-b1038.72 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

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