https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40386 --- Comment #1 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 184374 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184374&action=edit Bug 40386: Remove warnings from EDI when running tests This patch fixes several warnings that occur when running Edifact tests: 1. Changed `my $self = ()` to `my $self = {}` in Koha::Edifact constructor to properly initialize as hashref instead of empty list 2. Added null/empty checks in Koha::Edifact::Segment::_parse_seg() to prevent warnings when processing undefined or empty segments 3. Added null/empty checks in Koha::Edifact::Segment::_get_elements() to handle undefined segments gracefully 4. Added Test::NoWarnings to t/Edifact.t to catch any remaining warnings These changes eliminate "Use of uninitialized value" warnings and ensure clean test runs without affecting EDI functionality. Test plan: 1. Run prove t/Edifact.t and verify no warnings are displayed 2. Test EDI message processing to ensure no regression -- You are receiving this mail because: You are watching all bug changes.