Skip to content

Commit

Permalink
Fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpepper committed Jan 14, 2024
1 parent c53ce28 commit 8fc939e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
25 changes: 0 additions & 25 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,3 @@ parameters:
message: "#^Method BomWeather\\\\Util\\\\BaseNormalizer\\:\\:normalize\\(\\) return type with generic class ArrayObject does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Util/BaseNormalizer.php

-
message: "#^Call to method getEndTime\\(\\) on an unknown class BomWeather\\\\Forecast\\\\RegionForecastPeriod\\.$#"
count: 1
path: tests/src/Unit/Forecast/Serializer/ForecastSerializerTest.php

-
message: "#^Call to method getForecast\\(\\) on an unknown class BomWeather\\\\Forecast\\\\RegionForecastPeriod\\.$#"
count: 1
path: tests/src/Unit/Forecast/Serializer/ForecastSerializerTest.php

-
message: "#^Call to method getStartTime\\(\\) on an unknown class BomWeather\\\\Forecast\\\\RegionForecastPeriod\\.$#"
count: 1
path: tests/src/Unit/Forecast/Serializer/ForecastSerializerTest.php

-
message: "#^Parameter \\#1 \\$periods of method BomWeather\\\\Tests\\\\Unit\\\\Forecast\\\\Serializer\\\\ForecastSerializerTest\\:\\:assertRegionPeriods\\(\\) expects array\\<BomWeather\\\\Forecast\\\\RegionForecastPeriod\\>, array\\<BomWeather\\\\Forecast\\\\ForecastPeriod\\> given\\.$#"
count: 1
path: tests/src/Unit/Forecast/Serializer/ForecastSerializerTest.php

-
message: "#^Parameter \\$periods of method BomWeather\\\\Tests\\\\Unit\\\\Forecast\\\\Serializer\\\\ForecastSerializerTest\\:\\:assertRegionPeriods\\(\\) has invalid type BomWeather\\\\Forecast\\\\RegionForecastPeriod\\.$#"
count: 1
path: tests/src/Unit/Forecast/Serializer/ForecastSerializerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function testDeserializeSydney(): void {
/**
* Asserts regions are valid.
*
* @param \BomWeather\Forecast\RegionForecastPeriod[] $periods
* @param \BomWeather\Forecast\ForecastPeriod[] $periods
* The regions.
*/
protected function assertRegionPeriods(array $periods): void {
Expand Down

0 comments on commit 8fc939e

Please sign in to comment.