PHPstorm PHP syntax not workling witch same class / file names

Hello All,


I have this strange problem.

This is my Zend_View_Helper_ShowPopupMessages.php file:

<?php

class Zend_View_Helper_ShowPopupMessages extends Zend_View_Helper_Abstract
{

     public function showPopupMessages()
    {

     $flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger');

        if($flashMessenger->hasMessages()) {

            $msg =$flashMessenger->getMessages()[0];

            return "ShowToastMessage('$msg','success')";
        }


    }

}


as you see the file name and class name are the same and the syntax coloring doesn't work.
When I change the file name to say Zend_View_Helper_ShowPopupMessages1.php coloring works fine.
Also see non php file type icon in the attached picture.

Please help.

Regards
Tom



Attachment(s):
cc.png
2 comments
Comment actions Permalink

Hi there,

  1. Settings (Preferences on Mac) | Editor | File Types
  2. Find "Text files" file type entry
  3. Find and delete offensive pattern in bottom list (most likely will be "Zend_View_Helper_ShowPopupMessages.php")
0
Comment actions Permalink

It works, thanks!!

Regards
Tom

0

Please sign in to leave a comment.