Project

General

Profile

Actions

Feature #81330

closed

Provide a path to migrate internal class properties to protected

Added by Elmar Hinz almost 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Code Cleanup
Target version:
Start date:
2017-05-24
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

A lot of properties of core classes are public since years, making it hard to refactor the classes. Every change is threatening to break extensions. This slows down the modernisation of TYPO3 a lot.

A path is needed to be able to set public properties to protected without immediately breaking extensions. This is generally reached by deprecation and period of transition to adjust extensions.

Deprecation works well for methods, as they can trigger the deprecation log directly. Provide this feature for properties, by triggering the depreciation log by using magic accessor methods to trigger the log.

Suggestion is to use a trait to temporarily include the feature into classes for periods of transition.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #85247: Add trait to detect public deprecated methodsClosed2018-06-12

Actions
Actions

Also available in: Atom PDF