Skip to content

PEAR.Functions.FunctionCallSignature incorrect indent fix when checking mixed HTML/PHP files #3666

@giorgosbotis

Description

@giorgosbotis

running phpcbf on a file containing the following code:

<?php include get_theme_file_path(
        '/theme_extra/test_block.php'
      ); ?>   

I get the following error:
Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: Undefined array key -1 in /app/myproject/vendor/squizlabs/php_codesniffer/src/Fixer.php on line 510 in /app/myproject/vendor/squizlabs/php_codesniffer/src/Runner.php:604

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions