You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mhrownaghi (via GitHub)" <gi...@apache.org> on 2023/11/15 14:54:20 UTC

[I] Give a hint using $this in static method. [netbeans]

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


Re: [I] Give a hint using $this in static method. [netbeans]

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #6703: Give a hint using $this in static method.
URL: https://github.com/apache/netbeans/issues/6703


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