Skip to content

Wrong annotation in formatDateTime - lib/internal/Magento/Framework/Stdlib/DateTime/TimezoneInterface.php #15601

@sanjay-wagento

Description

@sanjay-wagento

Preconditions

  1. Magento 2 code.

Steps to reproduce

  1. Observe \Magento\Framework\Stdlib\DateTime\TimezoneInterface::formatDateTime

Expected result

  1. The annotation for locale and timezone should be @param string|null $locale and @param string|null $timezone

Actual result

  1. The annotation for locale and timezone is @param null $locale and @param null $timezone
    /**
     * @param string|\DateTimeInterface $date
     * @param int $dateType
     * @param int $timeType
     * @param null $locale
     * @param null $timezone
     * @param string|null $pattern
     * @return string
     */
    public function formatDateTime(
        $date,
        $dateType = \IntlDateFormatter::SHORT,
        $timeType = \IntlDateFormatter::SHORT,
        $locale = null,
        $timezone = null,
        $pattern = null
    );

Metadata

Metadata

Labels

Component: Framework/StdlibFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions