Project

General

Profile

Actions

Task #35010

closed

unused variable $errorMsg in logDeprecatedFunction

Added by Simon Schaufelberger about 12 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2012-03-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

    // trigger PHP error with a short message: <function> is deprecated (called from <source>, defined in <source>)
        $errorMsg = 'Function ' . $trail[1]['function'];
        if ($trail[1]['class']) {
            $errorMsg .= ' of class ' . $trail[1]['class'];
        }
        $errorMsg .= ' is deprecated (called from ' . $trail[1]['file'] . '#' . $trail[1]['line'] . ', defined in ' . $function->getFileName() . '#' . $function->getStartLine() . ')';

this nice code is not used later again which is really sad because it is a nice snippet of code.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #22614: c&p error in t3lib_div::logDeprecatedFunctionClosedSteffen Kamper2010-05-09

Actions
Actions

Also available in: Atom PDF