Skip to content

Commit

Permalink
Update phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jan 24, 2024
1 parent 9fbba89 commit 930ef57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
32 changes: 1 addition & 31 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Method ipl\\\\Scheduler\\\\Cron\\:\\:getNextDue\\(\\) should return DateTimeInterface but returns DateTimeInterface\\|null\\.$#"
count: 2
path: src/Cron.php

-
message: "#^Method ipl\\\\Scheduler\\\\Cron\\:\\:jsonSerialize\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Cron.php

-
message: "#^Method ipl\\\\Scheduler\\\\RRule\\:\\:getNextDue\\(\\) should return DateTimeInterface but returns DateTimeInterface\\|null\\.$#"
count: 1
path: src/RRule.php

-
message: "#^Method ipl\\\\Scheduler\\\\RRule\\:\\:jsonSerialize\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/RRule.php

-
message: "#^Parameter \\#1 \\$timezone of class DateTimeZone constructor expects string, string\\|null given\\.$#"
message: "#^Parameter \\#1 \\$rrule of class Recurr\\\\Rule constructor expects string\\|null, array\\<string, mixed\\>\\|string given\\.$#"
count: 1
path: src/RRule.php

-
message: "#^Parameter \\#2 \\$before of class Recurr\\\\Transformer\\\\Constraint\\\\BetweenConstraint constructor expects DateTimeInterface, DateTimeInterface\\|null given\\.$#"
count: 1
path: src/RRule.php

-
message: "#^Parameter \\#1 \\$timer of static method React\\\\EventLoop\\\\Loop\\:\\:cancelTimer\\(\\) expects React\\\\EventLoop\\\\TimerInterface, React\\\\EventLoop\\\\TimerInterface\\|null given\\.$#"
count: 1
path: src/Scheduler.php
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ parameters:
- '#Call to an undefined method React\\Promise\\PromiseInterface::#'

- '#Method ipl\\Scheduler\\.* should return \$this.* but returns static#'

- '#Parameter \#1 \$rrule of class Recurr\\Rule constructor expects string\|null, array.*\|string given#'

- '#Parameter \#1 \$callback of function call_user_func_array expects callable\(\): mixed, array{Recurr\\Rule, string} given#'

0 comments on commit 930ef57

Please sign in to comment.