Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid errors when the disabled key is absent or nil #1985

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akr4m
Copy link

@akr4m akr4m commented Aug 25, 2024

Gracefully Handle Missing 'disabled' Key in Services Hash

This pull request includes a minor but crucial update to the Homestead class to handle cases where the disabled key within the services hash might not be present.

Changes

  • Updated the services loop to safely handle cases where the disabled key is not defined. The code now defaults to an empty array ([]) when the disabled key is missing or nil.

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