Skip to content

Commit

Permalink
Fix issue #2, but throws two warnings and one deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-T committed Apr 8, 2024
1 parent 6fe11c8 commit 460aa23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions quality/php-stan/phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
parameters:
ignoreErrors:
# readGeometry is recursive because of GeometryCollection.
-
message: "#^Method LongitudeOne\\\\Geo\\\\WKB\\\\Parser\\:\\:geometryCollection\\(\\) should return array\\<array\\{type\\: string, value\\: array\\<array\\<array\\<array\\<array\\<array\\<array\\<array\\<float\\|int\\>\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\}\\> but returns array\\<int\\<0, max\\>, array\\{type\\: string, value\\: array\\<array\\<array\\<array\\<array\\<array\\<array\\<array\\<array\\<array\\<float\\|int\\>\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\|float\\|int\\|string\\>\\|float\\|int\\>\\}\\>\\.$#"
count: 1
path: ../../lib/LongitudeOne/Geo/WKB/Parser.php
# Type cannot be null at this step

-
message: "#^Parameter \\#1 \\$type of method LongitudeOne\\\\Geo\\\\WKB\\\\Parser\\:\\:getTypeName\\(\\) expects int, int\\|null given\\.$#"
count: 1
path: ../../lib/LongitudeOne/Geo/WKB/Parser.php

-
message: "#^Parameter \\#1 \\$input of class LongitudeOne\\\\Geo\\\\WKB\\\\Parser constructor expects string\\|null, float\\|string given\\.$#"
count: 1
path: ../../tests/LongitudeOne/Geo/WKB/Tests/ParserTest.php

0 comments on commit 460aa23

Please sign in to comment.