Showing 443 of 443 total issues
set_flash accesses the super-global variable $_SESSION. Open
Open
function set_flash(array $input)
{
$has_flash = !isset($_SESSION['_flash']) || !is_array($_SESSION['_flash']);
$flash = $has_flash ? $_SESSION['_flash'] : [];
- 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
gc_session accesses the super-global variable $_SESSION. Open
Open
function gc_session()
{
$now = time();
$_SESSION['login'] = isset($_SESSION['login']) ? $_SESSION['login'] : [];
- 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
gc_session accesses the super-global variable $_SESSION. Open
Open
function gc_session()
{
$now = time();
$_SESSION['login'] = isset($_SESSION['login']) ? $_SESSION['login'] : [];
- 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
Call to method __construct
from undeclared class \Monolog\Logger
Open
Open
$logger = new \Monolog\Logger('');
- Exclude checks
Return type of requestAPI()
is undeclared type \Psr\Http\Message\ResponseInterface
Open
Open
public function requestAPI($method, $path, array $options, SessionStorage $session)
- Exclude checks
Call to undeclared method \Baguette\Mastodon\Config\DotEnvStorage::readLinesFromFile
Open
Open
return $this->readLinesFromFile($fp);
- Exclude checks
Class uses undeclared trait \Teto\Object\TypedProperty
Open
Open
class Status extends Entity
- Exclude checks
Expected an object instance or the name of a class but saw expression with type false|string
Open
Open
$retval[] = ($obj instanceof $class) ? $obj : new $class($obj);
- Exclude checks
Doc-block of $http
in auth
contains phpdoc param type \Baguette\Mastodon\Grant\Client
which is incompatible with the param type \GuzzleHttp\ClientInterface
declared in the signature Open
Open
* @param Client $http
- Exclude checks
Call to method intVal
from undeclared class \Respect\Validation\Validator
Open
Open
v::intVal()->min(0)->assert($id);
- Exclude checks
Call to method stringType
from undeclared class \Respect\Validation\Validator
Open
Open
v::stringType()->assert($update_data['display_name']);
- Exclude checks
Call to method intVal
from undeclared class \Respect\Validation\Validator
Open
Open
v::intVal()->min(0)->assert($options['max_id']);
- Exclude checks
Cannot modify read-only magic property \Baguette\Mastodon\Service\toot->toot_string
defined at src/Service/Toot.php:13
Open
Open
$this->toot_string = $toot_string;
- Exclude checks
Call to method __construct
from undeclared class \GuzzleHttp\Client
(Did you mean class \Baguette\Mastodon\Client) Open
Open
$cached_client = new \GuzzleHttp\Client;
- Exclude checks
Call to method required
from undeclared class \Dotenv\Dotenv
Open
Open
$dotenv->required('MY_PHP_ENV');
- Exclude checks
Call to method pushHandler
from undeclared class \Monolog\Logger
Open
Open
$logger->pushHandler(new StreamHandler($fp, Logger::INFO, true, null, true));
- Exclude checks
Return type of chrome_log()
is undeclared type \Monolog\Logger
Open
Open
function chrome_log()
- Exclude checks
Call to method pushHandler
from undeclared class \Monolog\Logger
Open
Open
$logger->pushHandler($handler);
- Exclude checks
Parameter $client
has undeclared type \GuzzleHttp\Client
(Did you mean class \Baguette\Mastodon\Client) Open
Open
public function setAPIHttpClient(\GuzzleHttp\Client $client)
- Exclude checks
Class extends undeclared class \Dotenv\Loader
Open
Open
class DotEnvStorage extends \Dotenv\Loader implements Storage
- Exclude checks