Skip to content

add a getter for PHP_CodeSniffer\Files\File::$content #1310

@joachim-n

Description

@joachim-n

It would be useful when debugging to have a way to dump just the PHP content of a File object, because when I dump() a file object I get screens and screens of stuff, and my IDE's debugger doesn't like long strings.

Either making protected $content readonly (if the minimum supported version of PHP allows this), or adding a getter method for it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions