Skip to content

Best way to retrieve the current static function call #629

Open
@vpxyz

Description

@vpxyz

Hi, I'm try to figure out how to retrieve the current static function call. In code like this

   <?php
   UI\Control::enable(); 

if the cursor position is before ::, (thing-at-point 'sexp t) return UI\\Control, after the :: return enable.
There is in php-mode a function that returns the whole static method call?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions