title: How to get type hinting in phpStorm for an array to object function?
body: <p>I need to have access to type hint like </p>
  
  <blockquote>
    <p>SapDefine::transactionCode()-> ...</p>
  </blockquote>
  
  <p>For now am seeing hint for SapDefine:: ...</p>
  
  <pre><code> class sapDefine extends ServiceProvider {     
  
    /**
    * @return object[]
    */
    public static function transactionCode() {
      return (object) [
          'RetailSales-DineIn'=&gt;'ZR11',
          'RetailSales-TakeAway'=&gt;'ZR12',
          'RetailReturn-DineIn'=&gt;'ZR21',
          'RetailReturn-TakeAway'=&gt;'ZR22',
          'DeliverySales-E-Coms'=&gt;'ZD13',
          'DeliverySales-M-App'=&gt;'ZD14',
          'DeliverySales-Phone'=&gt;'ZD15',
          'DeliveryReturn-E-Coms'=&gt;'ZD23',
          'DeliveryReturn-M-App'=&gt;'ZD24',
          'DeliveryReturn-Phone'=&gt;'ZD25',
          'EventSales-General'=&gt;'ZE19',
          'EventReturn-General'=&gt;'ZE29'
      ];
    }
  }
  </code></pre>
  
  <p>ps. project is setup in laravel.</p>