DateArgumentWrapper uses method_exists(getFormat) but calls getArgFormat(), preventing custom handlers from validating arguments

Created on 4 September 2025, about 1 month ago

Problem/Motivation

DateArgumentWrapper::getArgFormat() currently checks

if (method_exists($class, 'getFormat')) {
  return $this->dateArg->getArgFormat();
}

This is inconsistent: it checks for getFormat() but then calls getArgFormat().

Proposed resolution

Replace

method_exists($class, 'getFormat')

with

method_exists($this->dateArg, 'getArgFormat')

This ensures the wrapper properly detects and uses getArgFormat() implementations in custom argument handlers.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024