• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daycry / auth / 25545938245
72%

Build:
DEFAULT BRANCH: development
Ran 08 May 2026 08:42AM UTC
Jobs 1
Files 184
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 May 2026 08:37AM UTC coverage: 59.035% (-0.01%) from 59.045%
25545938245

push

github

daycry
Drop redundant ?? defaults on non-nullable Auth config properties

PHPStan strict-rules on PHP 8.5 (CI) flagged three `??` operators
applied to properties whose declared type is non-nullable, so the
right-hand side is unreachable code:

- Auth::$gateAutoDiscover  (bool,   default true)
- Auth::$policyNamespace   (string, default 'App\Policies\')
- Auth::$basicAuthRealm    (string, default 'Restricted')

The ?? was a defensive habit from earlier code that read settings via
`setting('Auth.foo')` (which can legitimately return null when not
overridden). For typed properties on the Config class itself the
default is always applied, so `??` is dead code.

Files fixed:
- src/Authorization/Gate.php — autoDiscoverPolicy() reads $gateAutoDiscover
  and $policyNamespace directly. Stashed `config('Auth')` in a local
  to avoid two lookups.
- src/Filters/BasicAuthFilter.php — challenge() reads $basicAuthRealm
  directly.

PHPUnit and the local PHPStan run remain green; this commit makes the
CI PHPStan job (which runs on PHP 8.5) green again too.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1 of 4 new or added lines in 2 files covered. (25.0%)

1 existing line in 1 file now uncovered.

3672 of 6220 relevant lines covered (59.04%)

48.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
82.76
-1.45% src/Authorization/Gate.php

Coverage Regressions

Lines Coverage ∆ File
1
82.76
-1.45% src/Authorization/Gate.php
Jobs
ID Job ID Ran Files Coverage
1 25545938245.1 08 May 2026 08:42AM UTC 184
59.04
GitHub Action Run
Source Files on build 25545938245
  • Tree
  • List 184
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25545938245
  • f9e9a503 on github
  • Prev Build on development (#25545552027)
  • Next Build on development (#25551603694)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc