You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/10/24 17:12:20 UTC

[GitHub] [netbeans] junichi11 opened a new pull request #1592: [NETBEANS-3002] NullPointerExceptions during PHPStan inspection

junichi11 opened a new pull request #1592: [NETBEANS-3002] NullPointerExceptions during PHPStan inspection
URL: https://github.com/apache/netbeans/pull/1592
 
 
   - The file name value can be null
   
   e.g.
   ```
   <file>
     <error severity="error" message="Ignored error pattern #TEST# was not matched in reported errors." />
   </file>
   ```
   So, in this case, just ignore the error.
   
   - There is a difference in file name value between the old version and the new version
   
   e.g. Inspect the following app directory (myproject is the working directory)
   - myproject/app/Test1.php
   - myproject/app/Test2.php
   
   old version: the relative path from target directory
   ```
   <file name="Test1.php">
     <error line="13" column="1" severity="error" message="Binary operation &quot;+&quot; between string and 2 results in an error." />
   </file>
   <file name="Test2.php">
     <error line="9" column="1" severity="error" message="Anonymous function should return string but returns void." />
     <error line="9" column="1" severity="error" message="Result of closure (void) is used." />
   </file>
   ```
   
   new verison: the relative path from working directory
   ```
   <file name="app/Test1.php">
     <error line="13" column="1" severity="error" message="Binary operation &quot;+&quot; between string and 2 results in an error." />
   </file>
   <file name="app/Test2.php">
     <error line="9" column="1" severity="error" message="Anonymous function should return string but returns void." />
     <error line="9" column="1" severity="error" message="Result of closure (void) is used." />
   </file>
   ```
   
   So, check also the relative path from the working directory.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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