Project

General

Profile

Actions

Task #82416

closed

Change `get_class($this)` calls to `static::class`

Added by Romain Canon about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.0
Tags:
performance
Complexity:
easy
Sprint Focus:
On Location Sprint

Description

Considering this blog post using static::class instead of get_class($this) is 1/3 faster.

At the moment writing these lines, a basic search in TYPO3 core gave me 77 results; they should probably all be replaced.

Actions

Also available in: Atom PDF