Skip to content

Commit 51429cd

Browse files
committed
docs: use @phpstan-ignore-next-line instead of phpstan-baseline
1 parent be3860c commit 51429cd

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

phpstan-baseline.neon.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,6 @@ parameters:
635635
count: 1
636636
path: system/Throttle/Throttler.php
637637

638-
-
639-
message: "#^Variable \\$error on left side of \\?\\? always exists and is always null\\.$#"
640-
count: 1
641-
path: system/Validation/Validation.php
642-
643638
-
644639
message: "#^Property CodeIgniter\\\\View\\\\Cell\\:\\:\\$cache \\(CodeIgniter\\\\Cache\\\\CacheInterface\\) in empty\\(\\) is not falsy\\.$#"
645640
count: 2

system/Validation/Validation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ protected function processRules(
331331

332332
$param = ($param === false) ? '' : $param;
333333

334+
// @phpstan-ignore-next-line $error may be set by rule methods.
334335
$this->errors[$field] = $error ?? $this->getErrorMessage(
335336
$rule,
336337
$field,

0 commit comments

Comments
 (0)