---
title: "Breaking: #98070 - Remove eval method year"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-98070-1743452794"
source: "Changelog/14.0/Breaking-98070-RemoveEvalMethodYear.rst"
typo3-version: "14.0"
typo3-major: 14
type: "breaking"
issue: 98070
forge: "https://forge.typo3.org/issues/98070"
tags: ["Backend", "TCA", "NotScanned", "ext:backend"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Breaking: #98070 - Remove eval method year {#breaking-98070-1743452794}

See [forge#98070](https://forge.typo3.org/issues/98070)

## Description {#description}

The eval method `year` was used to validate the value of a TCA field. Its
implementation was never completed and simply cast the value to an integer.

As there is no clear definition of what a valid year value should be, the
method has been removed without substitution.

## Impact {#impact}

The value `year` has been removed from the list of supported `eval` options.

The TCA migration will trigger a deprecation log entry when building the final
TCA.

## Affected installations {#affected-installations}

TYPO3 installations using old extensions that define custom TCA configurations
with this option set are affected.

## Migration {#migration}

Remove the `year` eval setting from your TCA configuration and use a TCA field
type that better suits your needs.

```php
// Use type "number" with an optional range restriction
'variant_a' => [
    'label' => 'My year',
    'config' => [
        'type' => 'number',
        'range' => [
            'lower' => 1990,
            'upper' => 2038,
        ],
        'default' => 0,
    ],
],

// Use a date field with an optional range restriction
'variant_b' => [
    'label' => 'My year',
    'config' => [
        'type' => 'datetime',
        'range' => [
            'lower' => gmmktime(0, 0, 0, 1, 1, 1990),
            'upper' => gmmktime(23, 59, 59, 12, 31, 2038),
        ],
        'nullable' => true,
    ],
],
```
