---
title: "TYPO3 Exception 1264093642"
manual: "TYPO3 Exceptions"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3exceptions:typo3-exception-1264093642"
source: "Exceptions/1264093642.rst"
rendered: "2026-09-28T10:25:33+00:00"
---

# TYPO3 Exception 1264093642 {#typo3-exception-1264093642}

> [!NOTE]
> Below, the TYPO3 community may have provided additional information or
> solutions for this exception. However, these may or may not apply to your
> particular case. If you can provide more information, you should come back
> here and add your experience and solution steps to this issue once you have
> resolved it.
>
> General TYPO3 troubleshooting tips can be found in the *Troubleshooting*
> section in the menu. You can also ask questions and receive support in the
> [TYPO3 Questions category on talk.typo3.org](https://talk.typo3.org/c/typo3-questions/).
>
> To add your experience, click "Edit on GitHub" above and follow the
> ["Edit on GitHub" workflow](https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/Howto/EditOnGithub.html#docs-contribute-github-method).
> Also check out
> [our tip on Coding Style and reST](https://docs.typo3.org/permalink/t3exceptions:tip-about-rest-coding-style).

## Found an invalid element type declaration in %s {#found-an-invalid-element-type-declaration-in-s}

```text
1264093642: Found an invalid element type declaration in %s. Type
"ObjectStorage" must not have an element type hint
(vendor\yourExtension\Domain\Model\yourModel)
```

## Solution {#solution}

In annotations use statement do not work in older TYPO3 versions.

Use:

```
use TYPO3\CMS\Extbase\Persistence\ObjectStorage

// ...

/**
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\vendor\yourExtension\Domain\Model\yourModel
* ...
*/

```

instead of

```
use TYPO3\CMS\Extbase\Persistence\ObjectStorage

// ...

/**
* @var ObjectStorage<\vendor\yourExtension\Domain\Model\yourModel>
* ...
*/

```

### Running Rector for TYPO3 v8 and below {#running-rector-for-typo3-v8-and-below}

If you are running Rector on TYPO3 v8 and below you should exclude `Domain/Model` paths
from TYPO3 Option `Typo3Option::PATHS_FULL_QUALIFIED_NAMESPACES`.

```
$parameters->set(Typo3Option::PATHS_FULL_QUALIFIED_NAMESPACES, [
    // If you are targeting TYPO3 Version 11 use can now use Short namespace
    // @see namespace https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/BestPractises/ConfigurationFiles.html
    'ext_localconf.php',
    'ext_tables.php',
    'ClassAliasMap.php',
    __DIR__ . '/**/Domain/Model/*',
    __DIR__ . '/**/Configuration/*.php',
    __DIR__ . '/**/Configuration/**/*.php',
]);
```
