Skip to content

[6.x] Import Log facade to fix PHPStan analysis - #15248

Merged
duncanmcclean merged 1 commit into
6.xfrom
log-facade-imports
Aug 24, 2026
Merged

[6.x] Import Log facade to fix PHPStan analysis#15248
duncanmcclean merged 1 commit into
6.xfrom
log-facade-imports

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Aug 24, 2026

Copy link
Copy Markdown
Member

This pull request fixes an issue where the PHPStan "Analyze" workflow fails on any pull request touching src/.

This was happening because PHPStan 2.2.9 (released 22nd August) no longer resolves unimported root-namespace facade aliases like \Log, and the workflow installs the latest dependencies on every run. Four files were still calling \Log:: directly.

This PR fixes it by importing the Illuminate\Support\Facades\Log facade in those files, matching the convention used everywhere else in the codebase.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019fa8J46Th4Q3aRPWs51kPt
@duncanmcclean
duncanmcclean merged commit 2665cd1 into 6.x Aug 24, 2026
67 checks passed
@duncanmcclean
duncanmcclean deleted the log-facade-imports branch August 24, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant