Review main Merged

58972[BUGFIX] Allow accessing object from `ObjectStorage` with numeric value

Romain Canon CR +2 V +2 Normal +111 −19 updated 09/20/19, 12:23

Commit message

The following code now works:

```php
$objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
$objectStorage->attach(new \stdClass());
$myObject = $objectStorage->offsetGet(0);
```

And more importantly, the following Fluid code works as well:

<f:image image="{myObject.resources.0}" alt="My image!" />

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 1

Files 4