Skip to content

Commit

Permalink
refactor: reduce phpstan baseline errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubmikita committed May 6, 2024
1 parent d715fba commit 08f3e9d
Showing 1 changed file with 0 additions and 121 deletions.
121 changes: 0 additions & 121 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ parameters:
count: 1
path: compat/src-deprecated/functions.php


-
message: "#^Function notification_get_posts\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down Expand Up @@ -726,11 +725,6 @@ parameters:
count: 2
path: src/Admin/PostTable.php

-
message: "#^Cannot call method getName\\(\\) on mixed\\.$#"
count: 1
path: src/Admin/PostTable.php

-
message: "#^Method BracketSpace\\\\Notification\\\\Admin\\\\PostType\\:\\:getAllNotifications\\(\\) should return array but returns mixed\\.$#"
count: 1
Expand Down Expand Up @@ -771,36 +765,6 @@ parameters:
count: 1
path: src/Admin/Screen.php

-
message: "#^Cannot call method activate\\(\\) on mixed\\.$#"
count: 1
path: src/Admin/Screen.php

-
message: "#^Cannot call method getName\\(\\) on mixed\\.$#"
count: 1
path: src/Admin/Screen.php

-
message: "#^Cannot call method getSlug\\(\\) on mixed\\.$#"
count: 4
path: src/Admin/Screen.php

-
message: "#^Cannot call method isActive\\(\\) on mixed\\.$#"
count: 1
path: src/Admin/Screen.php

-
message: "#^Cannot call method isEnabled\\(\\) on mixed\\.$#"
count: 2
path: src/Admin/Screen.php

-
message: "#^Parameter \\#1 \\$carrier of method BracketSpace\\\\Notification\\\\Admin\\\\Screen\\:\\:getCarrierForm\\(\\) expects BracketSpace\\\\Notification\\\\Interfaces\\\\Sendable, mixed given\\.$#"
count: 1
path: src/Admin/Screen.php

-
message: "#^Cannot access property \\$pageHook on mixed\\.$#"
count: 3
Expand All @@ -816,16 +780,6 @@ parameters:
count: 1
path: src/Admin/Scripts.php

-
message: "#^Offset 'draft' on array\\{publish\\: int, draft\\: int\\} on left side of \\?\\? always exists and is not nullable\\.$#"
count: 1
path: src/Admin/Wizard.php

-
message: "#^Offset 'publish' on array\\{publish\\: int, draft\\: int\\} on left side of \\?\\? always exists and is not nullable\\.$#"
count: 1
path: src/Admin/Wizard.php

-
message: "#^Parameter \\#2 \\.\\.\\.\\$values of function sprintf expects bool\\|float\\|int\\|string\\|null, mixed given\\.$#"
count: 1
Expand Down Expand Up @@ -941,31 +895,6 @@ parameters:
count: 1
path: src/Api/Controller/RepeaterController.php

-
message: "#^Cannot call method getFieldValue\\(\\) on mixed\\.$#"
count: 1
path: src/Api/Controller/RepeaterController.php

-
message: "#^Cannot call method getRecipients\\(\\) on mixed\\.$#"
count: 1
path: src/Api/Controller/RepeaterController.php

-
message: "#^Cannot call method getRecipientsField\\(\\) on mixed\\.$#"
count: 1
path: src/Api/Controller/RepeaterController.php

-
message: "#^Cannot call method hasRecipientsField\\(\\) on mixed\\.$#"
count: 1
path: src/Api/Controller/RepeaterController.php

-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Api/Controller/RepeaterController.php

-
message: "#^Method BracketSpace\\\\Notification\\\\Api\\\\Controller\\\\RepeaterController\\:\\:getCarrierFields\\(\\) should return array but returns mixed\\.$#"
count: 1
Expand Down Expand Up @@ -1016,11 +945,6 @@ parameters:
count: 1
path: src/Api/Controller/SectionRepeaterController.php

-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Api/Controller/SectionRepeaterController.php

-
message: "#^Parameter \\#1 \\$data of method BracketSpace\\\\Notification\\\\Api\\\\Controller\\\\RepeaterController\\:\\:formFieldData\\(\\) expects array\\|null, mixed given\\.$#"
count: 2
Expand Down Expand Up @@ -1131,46 +1055,6 @@ parameters:
count: 1
path: src/Core/License.php

-
message: "#^Cannot call method disable\\(\\) on mixed\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Cannot call method enable\\(\\) on mixed\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Cannot call method getData\\(\\) on mixed\\.$#"
count: 2
path: src/Core/Notification.php

-
message: "#^Cannot call method getSlug\\(\\) on mixed\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Cannot call method isEnabled\\(\\) on mixed\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Cannot call method setData\\(\\) on mixed\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Cannot clone non\\-object variable \\$carrier of type mixed\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Parameter \\#1 \\$hash of method BracketSpace\\\\Notification\\\\Core\\\\Notification\\:\\:setHash\\(\\) expects string, mixed given\\.$#"
count: 1
path: src/Core/Notification.php

-
message: "#^Property BracketSpace\\\\Notification\\\\Core\\\\Notification\\:\\:\\$sourcePostId is never read, only written\\.$#"
count: 1
Expand Down Expand Up @@ -1226,11 +1110,6 @@ parameters:
count: 1
path: src/Core/Upgrade.php

-
message: "#^Variable \\$carrier in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: src/Core/Upgrade.php

-
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|null given\\.$#"
count: 1
Expand Down

0 comments on commit 08f3e9d

Please sign in to comment.