src/Service/Authorization.php
Missing class import via use statement (line '45', column '38'). Open
Open
$this->created_at = (new \DateTimeImmutable)->setTimeStamp($created_at);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Cannot modify read-only magic property \Baguette\Mastodon\Service\authorization->token_type
defined at src/Service/Authorization.php:12
Open
Open
$this->token_type = $token_type;
- Exclude checks
Doc-block of $scope
in __construct
contains phpdoc param type string[]
which is incompatible with the param type ?\Baguette\Mastodon\Service\Scope
declared in the signature Open
Open
* @param string[] $scope
- Exclude checks
Class uses undeclared trait \Teto\Object\PrivateGetter
Open
Open
class Authorization
- Exclude checks
Cannot modify read-only magic property \Baguette\Mastodon\Service\authorization->scope
defined at src/Service/Authorization.php:13
Open
Open
$this->scope = $scope;
- Exclude checks
Cannot modify read-only magic property \Baguette\Mastodon\Service\authorization->created_at
defined at src/Service/Authorization.php:14
Open
Open
$this->created_at = (new \DateTimeImmutable)->setTimeStamp($created_at);
- Exclude checks
Cannot modify read-only magic property \Baguette\Mastodon\Service\authorization->access_token
defined at src/Service/Authorization.php:11
Open
Open
$this->access_token = $access_token;
- Exclude checks