Skip to content

Wrong method highlight in php, when it is called non-static #182

@oleg-dk

Description

@oleg-dk

Wrong method highlight in php, when it is called non-static (from object).
E.g. in code

<div id="<?= $this->getEditAreaId($areaId='editable_area'); ?>"><?php
    $filePath = '/include/collection/delivery.php';
    $APPLICATION->includeFile($filePath, $params=[], $opts=['SHOW_BORDER' => false]);
    $title = 'Изменить';
    $this->addEditAction($areaId, '/bitrix/admin/public_file_edit.php?path='.$filePath, $title);
?></div>

screenshot: https://i.imgur.com/0Oioc2L.png

It seems that it highlight as part of variable, but not a method.

EnlighterJS Syntax Highlighter 3.5.1

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