the-liquid-metal opened a new issue, #6047:
URL: https://github.com/apache/netbeans/issues/6047

   ### Description
   
   Currently, PHP type system covers most of the cases. With ```mixed```, other 
unrepresented types can be represented by it. Another purpose of ```mixed``` is 
to discern whether people forgot to give a type or not. Adding types to all 
possible places is a good discipline. Netbeans need to provide additional item 
in editor hint to switch on and off to adjust this rule to the project policy.
   
   ### Use case/motivation
   
   ```php
   <?php
   declare(strict_types=1);
   
   class MyClass {
       public string $prop1 = "foo";
       public $prop2 = "bar";  // this statement should display warning
   
       public function func1(string $param1, string $param2): void {}
       public function func2(string $param1, $param2): void {}  // this 
statement should display warning
   
       public function funcA(): string {}
       public function funcB() {}  // this statement should display warning
   }
   ```
   
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


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