include/tagbar.php
tagBar accesses the super-global variable $GLOBALS. Open
Open
function tagBar($tags, int $catid = 0, int $modid = 0): array
{
$trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
trigger_error(__FUNCTION__ . " is deprecated, called from {$trace[0]['file']} line {$trace[0]['line']}");
$GLOBALS['xoopsLogger']->addDeprecated(
- Read upRead up
- Exclude checks
Superglobals
Since: 0.2
Accessing a super-global variable directly is considered a bad practice. These variables should be encapsulated in objects that are provided by a framework, for instance.
Example
class Foo {
public function bar() {
$name = $_POST['foo'];
}
}
Source
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 33 and the first side effect is on line 25. Open
Open
<?php declare(strict_types=1);
- Exclude checks
There must be one USE keyword per declaration Open
Open
use XoopsModules\Tag\{
- Exclude checks
Line exceeds 120 characters; contains 183 characters Open
Open
'Tag Module: ' . __FUNCTION__ . " function is deprecated since Tag 2.3.5, please use 'Tag\Tagbar' class instead." . " Called from {$trace[0]['file']}line {$trace[0]['line']}"
- Exclude checks