Skip to content

Merge pull request #30 from drsdre/drsdre-patch-getAllPeriods-float-cast #150

Merge pull request #30 from drsdre/drsdre-patch-getAllPeriods-float-cast

Merge pull request #30 from drsdre/drsdre-patch-getAllPeriods-float-cast #150

Triggered via push February 1, 2025 11:43
Status Failure
Total duration 31s
Artifacts

psalm.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
NullableReturnStatement: src/Collections/ProjectionCollection.php#L178
src/Collections/ProjectionCollection.php:178:16: NullableReturnStatement: The declared return type 'string' for TimothePearce\TimeSeries\Collections\ProjectionCollection::guessProjectionName is not nullable, but the function returns 'mixed|null' (see https://psalm.dev/139)
NullableReturnStatement: src/Collections/ProjectionCollection.php#L186
src/Collections/ProjectionCollection.php:186:16: NullableReturnStatement: The declared return type 'string' for TimothePearce\TimeSeries\Collections\ProjectionCollection::guessPeriod is not nullable, but the function returns 'mixed|null' (see https://psalm.dev/139)
InvalidScalarArgument: src/Collections/ProjectionCollection.php#L199
src/Collections/ProjectionCollection.php:199:30: InvalidScalarArgument: Argument 1 of Illuminate\Support\Carbon::add expects Carbon\CarbonConverterInterface|Closure|DateInterval|string, but float provided (see https://psalm.dev/012)
InvalidScalarArgument: src/TimeSeries.php#L70
src/TimeSeries.php:70:31: InvalidScalarArgument: Argument 1 of Illuminate\Support\Collection::push expects empty, but string provided (see https://psalm.dev/012)
psalm
Process completed with exit code 2.
psalm
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v2. Please update your workflow to use either v3 or v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down