You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "15god (via GitHub)" <gi...@apache.org> on 2023/05/11 10:10:11 UTC
[GitHub] [netbeans] 15god opened a new issue, #5933: IDE finds an error if casting a variable in arrow function
15god opened a new issue, #5933:
URL: https://github.com/apache/netbeans/issues/5933
### Apache NetBeans version
Apache NetBeans 17
### What happened
![image](https://github.com/apache/netbeans/assets/117515234/7e5abf35-bc79-4238-83d2-c1abcba563a9)
I initiated a new laravel project through composer, but IDE started showing error in pre-generated function. If i remove casting, red squiglies disappear.
### How to reproduce
_No response_
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Win 10
### JDK
JDK 20
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_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: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] junichi11 closed issue #5933: IDE finds an error if casting a variable in arrow function
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #5933: IDE finds an error if casting a variable in arrow function
URL: https://github.com/apache/netbeans/issues/5933
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] junichi11 commented on issue #5933: IDE finds an error if casting a variable in arrow function
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #5933:
URL: https://github.com/apache/netbeans/issues/5933#issuecomment-1545188758
Reproducible. The cause is not an arrow function expression but an instanceof expression.
### Example code
```php
<?php
class Example {}
$test = "Example";
$a = new Example();
$boolean = $a instanceof ((string) $test); // error
var_dump($boolean);
```
Thank you for reporting it.
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[GitHub] [netbeans] junichi11 commented on issue #5933: IDE finds an error if casting a variable in arrow function
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #5933:
URL: https://github.com/apache/netbeans/issues/5933#issuecomment-1545116434
Please also write an example code to reproduce it. (not only the image)
--
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: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists