mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +00:00
This fixes critical bugs where Stringable objects were used in strict comparisons and collection key lookups, causing service existence checks and domain lookups to fail. **Changes:** - Line 539: Added ->value() to $originalServiceName conversion - Line 541: Added ->value() to $serviceName normalization - Line 621: Removed redundant (string) cast now that $serviceName is a plain string **Impact:** - Service existence check now works correctly (line 606: $transformedServiceName === $serviceName) - Domain lookup finds existing domains (line 615: $domains->get($serviceName)) - Prevents duplicate domain entries in docker_compose_domains collection **Tests:** - Added comprehensive unit test suite in ApplicationParserStringableTest.php - 9 test cases covering type verification, strict comparisons, collection operations, and edge cases - All tests pass (24 tests, 153 assertions across related parser tests) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cache | ||
| helpers | ||
| app.php | ||
| getHelperVersion.php | ||
| getRealtimeVersion.php | ||
| getVersion.php | ||
| includeHelpers.php | ||