Skip to content

checkstyle errrorFormat issues in Traits #1872

@vitalyiegorov

Description

@vitalyiegorov

Summary of a problem or a feature request

We are using PHPStan with checkstyle errorFomat at our Jenkins CI and Warnings NG plugin. When we have an issue in Trait files it outputs following XML:

<?xml version="1.0" encoding="UTF-8"?>
<checkstyle>
<file name="tests/Controller/Traits/...Trait.php (in context of class App\Tests\Controller\v1\...)">
<error line="54" column="1" severity="error" message="Static access to instance property App\Tests\Controller\...." />
</file>
</checkstyle>

Expected output

This (in context of class App\Tests\Controller\v1\...) is not parsed by Warnings plugin correctly. I believe we should remove this (in context...) part and just leave Trait as error/warning source. Also would really love to have #1205 implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions