Utils: fix parsing of single-line doc comments, closes #3388 (#3469)

* Utils: fix parsing of single-line doc comments, closes #3388

* correctly handle the empty doc-comment case, add another test case

* ignore an extra phpstan bug
This commit is contained in:
Dylan T
2020-05-06 14:17:08 +01:00
committed by GitHub
parent 84932ce908
commit ef97c8f99e
3 changed files with 36 additions and 1 deletions

View File

@ -130,6 +130,11 @@ parameters:
count: 1
path: ../../../src/pocketmine/network/mcpe/protocol/DataPacket.php
-
message: "#^Strict comparison using \\=\\=\\= between string and false will always evaluate to false\\.$#"
count: 1
path: ../../../src/pocketmine/utils/Utils.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertNotNull\\(\\) with int and string will always evaluate to true\\.$#"
count: 1