Review TYPO3_6-2 Merged

42663[BUGFIX] Extbase: Optional arguments must not throw an Exception

Stefan Neufeind CR +2 V +2 Easy +15 −2 updated 08/17/15, 10:09

Commit message

Example:
public function barAction(\Vendor\Ext\Domain\Model\Foo $foo = NULL)

If the property mapper receives NULL, 0 or a valid value
the property mapping does not fail. But if the value is
a valid uid (>0) and there is no record with that uid
the whole property mapping fails.

While this is totally valid for required arguments,
optional arguments must be skipped.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 3

Files 2