Skip to content

Commit

Permalink
fix(phpstan-baseline): Ignore casting error in LoginCaptchaServicePro…
Browse files Browse the repository at this point in the history
…vider

- Added an ignore rule to ignore the casting error in LoginCaptchaServiceProvider.php.
- The error was related to casting Illuminate\Contracts\View\Factory or Illuminate\Contracts\View\View to string.
  • Loading branch information
guanguans committed Oct 17, 2023
1 parent 84bb798 commit ef795e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
parameters:
ignoreErrors:
-
message: "#^Cannot cast Illuminate\\\\Contracts\\\\View\\\\Factory\\|Illuminate\\\\Contracts\\\\View\\\\View to string\\.$#"
count: 1
path: src/LoginCaptchaServiceProvider.php

-
message: "#^Function login_captcha_content\\(\\) should return string but returns void\\.$#"
count: 1
Expand Down

0 comments on commit ef795e8

Please sign in to comment.