Skip to content

Conversation

@andrasbacsai
Copy link
Member

Changes

  • In bootstrap/helpers/shared.php, added checks for array type in parseDockerComposeFile before processing labels. This prevents str() from receiving an array. Array label values are now converted to strings.
  • In bootstrap/helpers/docker.php, added checks for array type in fqdnLabelsForTraefik before calling preg_match. This prevents preg_match() from receiving an array. Array label values are now converted to strings.
  • Added a unit test file tests/Unit/DockerComposeLabelParsingTest.php to verify these label parsing and conversion behaviors.

Issues

  • fix # (Implied by the error message and user's previous interactions)

@andrasbacsai andrasbacsai merged commit 988c08f into next Oct 16, 2025
4 checks passed
@andrasbacsai andrasbacsai deleted the andrasbacsai/fix-compose-preg-match branch October 16, 2025 07:00
This was referenced Oct 17, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants