Actions
Bug #28050
closedt3lib_div::devLog - PHPDoc Comment does not match method signature
Start date:
2011-07-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
This is the signature of t3lib_div::devLog
/** * Logs message to the development log. * This should be implemented around the source code, both frontend and backend, logging everything from the flow through an application, messages, results from comparisons to fatal errors. * The result is meant to make sense to developers during development or debugging of a site. * The idea is that this function is only a wrapper for external extensions which can set a hook which will be allowed to handle the logging of the information to any format they might wish and with any kind of filter they would like. * If you want to implement the devLog in your applications, simply add lines like: * if (TYPO3_DLOG) t3lib_div::devLog('[write message in english here]', 'extension key'); * * @param string Message (in english). * @param string Extension key (from which extension you are calling the log) * @param integer Severity: 0 is info, 1 is notice, 2 is warning, 3 is fatal error, -1 is "OK" message * @param array Additional data you want to pass to the logger. * @return void */ public static function devLog($msg, $extKey, $severity = 0, $dataVar = FALSE) { }
Notice that the last Parameter is declared as array, but defaults to FALSE. This leads to warning notices in IDEs like PHPStorm when you use devLog.
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Iba6222bdd79d62057ba0338ac0a88614583c1690 has been pushed to the review server.
It is available at http://review.typo3.org/3206
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change I9c49e5d5350d9442a5836e5e4e6bf778766bf532 has been pushed to the review server.
It is available at http://review.typo3.org/3207
Updated by Mr. Hudson over 13 years ago
Patch set 1 of change Ia93e1bbce0fade3cf082da3a799d19fec5c4dbc4 has been pushed to the review server.
It is available at http://review.typo3.org/3208
Updated by Sebastian Michaelsen over 13 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 87adf5767d4663056eac8820472f07de6df37625.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed
Actions