[Issue] Fix bad \Magento\Sales\Model\Order\Email\Container\Template::$id property #39151
Closed
3 of 5 tasks
Labels
Area: Order
Component: Mail
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: ready for confirmation
Priority: P3
May be fixed according to the position in the backlog.
Progress: done
Progress: PR in progress
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
This issue is automatically created based on existing pull request: #39150: Fix bad \Magento\Sales\Model\Order\Email\Container\Template::$id property
Description (*)
This PR fix the bad phpdoc for
\Magento\Sales\Model\Order\Email\Container\Template::$id
, actually$id
is typeint
but in reality isstring
.For example, with PHPSTAN is very complicated to setup the project with level 5 or higher :(
Workaround
Add
@phpstan-ignore-next-line
before callsetTemplateId
:(Related Pull Requests
None
Fixed Issues (if relevant)
None
Manual testing scenarios (*)
Setup PHPSTAN with level 5 or higher and run check.
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: