Skip to content

LocalDateTime::of() / LocalDateTime::withMonth() / ZonedDateTime::withMonth() allows Month enum #247

LocalDateTime::of() / LocalDateTime::withMonth() / ZonedDateTime::withMonth() allows Month enum

LocalDateTime::of() / LocalDateTime::withMonth() / ZonedDateTime::withMonth() allows Month enum #247

Triggered via pull request March 30, 2024 09:23
Status Failure
Total duration 21s
Artifacts

psalm.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 2 warnings
PossiblyInvalidArgument: src/LocalDateTime.php#L46
src/LocalDateTime.php:46:38: PossiblyInvalidArgument: Argument 2 of Brick\DateTime\LocalDate::of expects int, but possibly different type Brick\DateTime\Month|int provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/LocalDateTime.php#L311
src/LocalDateTime.php:311:40: PossiblyInvalidArgument: Argument 1 of Brick\DateTime\LocalDate::withMonth expects int, but possibly different type Brick\DateTime\Month|int provided (see https://psalm.dev/092)
Psalm
Process completed with exit code 2.
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Psalm
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/