junichi11 opened a new pull request, #5767:
URL: https://github.com/apache/netbeans/pull/5767

   Ignore the following cases
   
   - `array<int, TypeName>`
   - `array{'key': TypeName}`
   
   #### Example
   
   ```php
   <?php
   namespace Test1;
   
   class Foo {
       
   }
   
   namespace Test2;
   
   class Test
   {
       /**
        * @param array<'foo', Foo> $param
        */
       public function test1(array $param): Foo {
           return $param['foo'];
       }
   
       /**
        * @param array{'foo': Foo, "bar": string} $param
        */
       public function test2(array $param): Foo {
           return $param['foo'];
       }
   }
   
   ```
   
   #### Before:
   
![nb-php-avoid-showing-invalid-type-in-fix-imports-panel-before](https://user-images.githubusercontent.com/738383/229417216-38c22073-fe1d-49fa-b57c-1e7a188dcf28.png)
   
   
   #### After:
   
![nb-php-avoid-showing-invalid-type-in-fix-imports-panel-after](https://user-images.githubusercontent.com/738383/229417222-0d8171b5-c261-45f6-b368-4327a18f9889.png)
   
   
   


-- 
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