---
title: "Feature: #86964 - Allow getting class property default value"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-86964"
source: "Changelog/10.0/Feature-86964-AllowGettingClassPropertyDefaultValue.rst"
modified: "2026-09-14T09:47:36+00:00"
---

# Feature: #86964 - Allow getting class property default value

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

## Description

It is now possible to get the default value of a class property when using the `\TYPO3\CMS\Extbase\Reflection\ReflectionService`.

```php
class MyClass
{
    public $myProperty = 'foo';
}

$property = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Reflection\ReflectionService::class)
    ->getClassSchema(MyClass::class)
    ->getProperty('myProperty');

$defaultValue = $property->getDefaultValue(); // "foo"
```
