Skip to content

FlatteningLoader|Throw UnloadableWsdlException when loader returns empty content#37

Merged
veewee merged 1 commit into
php-soap:mainfrom
YasserB94:feat/flattening-loader-empty-content-exception
May 28, 2026
Merged

FlatteningLoader|Throw UnloadableWsdlException when loader returns empty content#37
veewee merged 1 commit into
php-soap:mainfrom
YasserB94:feat/flattening-loader-empty-content-exception

Conversation

@YasserB94
Copy link
Copy Markdown
Contributor

Q A
Type improvement
BC Break no

Summary

When a WSDL loader returns empty content, the FlatteningLoader would throw an AssertException making it hard to understand what went wrong.

This PR replaces it with a UnloadableWsdlException making the error clearer

Changes

  • Add UnloadableWsdlException::noContentAt() named constructor
  • Replace non_empty_string()->assert() with an explicit empty check in FlatteningLoader

@YasserB94 YasserB94 changed the title FlatteningLoader|Throw UnloadableWsdlException when loader returns empty vonyrny FlatteningLoader|Throw UnloadableWsdlException when loader returns empty content May 27, 2026
@YasserB94 YasserB94 force-pushed the feat/flattening-loader-empty-content-exception branch from 4890d90 to 90abfa2 Compare May 27, 2026 19:37
@YasserB94 YasserB94 force-pushed the feat/flattening-loader-empty-content-exception branch from 90abfa2 to 289721d Compare May 27, 2026 19:38
@veewee veewee merged commit 703dfb4 into php-soap:main May 28, 2026
6 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.

2 participants