Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#566 Update for PHP's mainExpr in functionList.xml

Next_major_release
closed
nobody
None
6
2014-05-11
2014-03-03
Dragon Chuang
No

Find:

<classRange
mainExpr="^[\s]*(class|abstract[\s]+class|final[\s]+class)[\t ]+[\w]+([\s]*|[\s]*(extends|implements)[\s]+[\w]+[\s]*)?\{"

Replace as:

<classRange
mainExpr="^[\s]*(class|abstract[\s]+class|final[\s]+class)[\t ]+[\w]+([\s]*|[\s]*(extends|implements)[\s]+[\w\\]+[\s]*)?\{"

References: http://tw1.php.net/manual/en/language.namespaces.rationale.php

I found this issue because notepad++ 6.5.4 can not list functions in my php class file.

Example:

namespace models {
    class workdata extends \MyApp\ModelBase {

        public function fetchRecord($id) {
            return true;
        }

    }
}

Thank you.

Discussion

  • Don HO
    Don HO
    2014-03-19

    • status: open --> accepted
    • Priority: 5 --> 6
     
  • Don HO
    Don HO
    2014-05-11

    • status: accepted --> closed