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 #1

Updated by Gerrit Code Review about 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54069

Actions #2

Updated by Romain Canon about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF