mhrownaghi opened a new issue, #6703:
URL: https://github.com/apache/netbeans/issues/6703
### Description
I may mistakenly use $this in a static method. It is expected that NetBeans
will show this error in the code before that I run it in the PHP engine.
### Use case/motivation
for example in the following code, there are a Fatal error.
```
<?php
class Person {
private int $age = 18;
public static function getAge(): int
{
return $this->age;
}
}
echo Person::getAge();
```
but Netbeans do not find it.
### 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