terax6669 opened a new issue, #4683:
URL: https://github.com/apache/netbeans/issues/4683

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   NetBeans fails to provide hints for promoted properties in a child property 
when introduced via `@mixin`.
   
![image](https://user-images.githubusercontent.com/19204073/192149508-795a5244-1f09-4067-8c53-e98e1bf755e2.png)
   
   ### How to reproduce
   
   ```php
   <?php
   
   /**
    * @property-read Data $data
    */
   class IdeHelperDataContainer
   {
   }
   
   /**
    * @mixin IdeHelperDataContainer
    */
   class DataContainer
   {
   }
   
   class Data
   {
        public function __construct(
                public readonly array $foo,
        ) {
   
        }
   }
   
   $container = new DataContainer();
   $data = new Data([]);
   
   $container->data; // works
   $container->data->foo; // no ide hint!
   $data->foo; // works
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 11 Pro 22000.978
   
   ### JDK
   
   OpenJDK 19.0.0 (from Chocolatey)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Only when using `@mixin`.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to