Skip to content

Rescan config files when a lookup misses - #44

Merged
edalzell merged 1 commit into
Stillat:masterfrom
edalzell:fix/rescan-config-after-construct
Oct 16, 2026
Merged

edalzell merged 1 commit into
Stillat:masterfrom
edalzell:fix/rescan-config-after-construct

Conversation

@edalzell

Copy link
Copy Markdown
Collaborator

Summary

  • LaravelConfigWriter indexes config filenames when it is constructed. A file created after that was invisible, and save() returned false without writing.
  • getFile() and hasConfig() now rebuild that index when a lookup misses, then try again. A file that is still missing still returns null / false.
  • Fixes Config files created after the writer is constructed are ignored #43.

Test plan

  • vendor/bin/phpunit (64 tests)
  • CI on this PR

A file published after the writer is constructed was invisible, so save() returned false and wrote nothing.
@edalzell
edalzell merged commit ddedf1a into Stillat:master Oct 16, 2026
13 checks passed
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.

Config files created after the writer is constructed are ignored

1 participant