Skip to content

Fix: preserve omitted optional arguments - #1287

Merged
fglock merged 4 commits into
masterfrom
fix/issue-1283-omitted-arguments
Sep 7, 2026
Merged

Fix: preserve omitted optional arguments#1287
fglock merged 4 commits into
masterfrom
fix/issue-1283-omitted-arguments

Conversation

@fglock

@fglock fglock commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Return undef from untaken if expressions without an else in both backends.
  • Preserve omitted optional arguments for Params::Validate and DateTime formatters.
  • Add permanent regression coverage for omitted versus explicit undef arguments.

Fixes #1283

Validation

  • make
  • params_validate_optional_argument.t on JVM and interpreter backends
  • DateTime::Format::Builder reproducer on both backends
  • DBIx-Class-DateTime-Epoch 0.10: all 37 JVM tests and t/02-schema.t (19 tests) on the interpreter

fglock and others added 3 commits September 7, 2026 19:08
Add a focused Params::Validate regression test for omitted optional
arguments before diagnosing the shared backend failure.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
Initialize false conditional paths rather than reusing a stale branch
register. This preserves omitted optional arguments in Params::Validate
and fixes DateTime::Format::Builder loading (#1283).

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
Return the false condition value from an if expression without an else while
explicitly materializing the interpreter result register. This keeps omitted
optional arguments distinct without regressing Perl conditional semantics.

Generated with [Codex](https://openai.com/codex/)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock marked this pull request as ready for review September 7, 2026 18:18
Keep the issue 1283 regression self-contained so it runs in the standard unit
test environment without requiring a locally installed CPAN module.

Generated with [Codex](https://openai.com/codex/)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock merged commit 5ccb82e into master Sep 7, 2026
2 checks passed
@fglock
fglock deleted the fix/issue-1283-omitted-arguments branch September 7, 2026 19:45
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.

Preserve omitted optional arguments in DateTime::Format::Builder calls

1 participant