---
title: "Deprecation: #101175 - Methods in VersionState"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-101175-1687941546"
source: "Changelog/13.0/Deprecation-101175-VersionState.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #101175 - Methods in VersionState

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

## Description

The methods `\TYPO3\CMS\Core\Versioning\VersionState::cast()` and
`\TYPO3\CMS\Core\Versioning\VersionState->equals()` have been
marked as deprecated.

## Impact

Calling the methods `\TYPO3\CMS\Core\Versioning\VersionState::cast()`
and `\TYPO3\CMS\Core\Versioning\VersionState->equals()` will trigger a
PHP deprecation warning.

## Affected installations

TYPO3 installations calling `\TYPO3\CMS\Core\Versioning\VersionState::cast()`
and `\TYPO3\CMS\Core\Versioning\VersionState->equals()`.

## Migration

Before:

```php
$versionState = \TYPO3\CMS\Core\Versioning\VersionState::cast($value);
if ($versionState->equals(VersionState::MOVE_POINTER) {
    // ...
}
```

After:

```php
$versionState = \TYPO3\CMS\Core\Versioning\VersionState::tryFrom($value)
if ($versionState === VersionState::MOVE_POINTER) {
    // ...
}
```
