Showing 452 of 452 total issues
Call to undeclared method \Automatorm\Orm\Traits\ClosureTree::getConnection
Open
Open
$query = new Query($this->getConnection());
- Exclude checks
Doc-block of $ids
in getAll
is phpdoc param type int[]
which is not a permitted replacement of the nullable param type ?array
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param int[] $ids Ids of rows
- Exclude checks
Call to undeclared method \Automatorm\Orm\Traits\ClosureTree::getConnection
Open
Open
$query = new Query($this->getConnection());
- Exclude checks
Reference to undeclared property \Automatorm\Orm\Traits\ClosureTree->id
Open
Open
WHERE p.child_id = {$parent->id} AND c.parent_id = {$this->id}
- Exclude checks
Reference to undeclared property \Automatorm\Orm\Traits\ClosureTree->id
Open
Open
->where(['p.child_id' => $parent->id, 'c.parent_id' => $this->id])
- Exclude checks
Static call to undeclared method \Automatorm\Orm\Traits\ClosureTree::findAll
Open
Open
return static::findAll(['id' => $children]);
- Exclude checks
Suspicious attempt to unset class \Automatorm\DataLayer\Database\Connection's
property connection
declared at /code/src/DataLayer/Database/Connection.php:52
(This can be done, but is more commonly done for dynamic properties and Phan does not expect this) Open
Open
unset($this->connection);
- Exclude checks
Possibly zero references to use statement for classlike/namespace DataAccessInterface
(\Automatorm\Interfaces\DataAccess)
Open
Open
use Automatorm\Interfaces\DataAccess as DataAccessInterface;
- Exclude checks
Possibly zero references to use statement for classlike/namespace Exception
(\Automatorm\Exception)
Open
Open
use Automatorm\Exception;
- Exclude checks
Possibly zero references to use statement for classlike/namespace SqlString
(\Automatorm\Database\SqlString)
Open
Open
use Automatorm\Database\SqlString;
- Exclude checks
Variable $this
is undeclared Open
Open
$output .= " <span><strong>id</strong></span> => ".$this->id."\n";
- Exclude checks
Variable $objstrings
was undeclared, but array fields are being added to it. Open
Open
$objstrings[] = \Automatorm\Orm\Dump::safeTruncate($obj);
- Exclude checks
Checking instanceof against undeclared class \Psr\SimpleCache\CacheInterface
Open
Open
if ($cache instanceof Psr16) {
- Exclude checks
Reference to undeclared property \Automatorm\DataLayer\Database\Connection->logger
(Did you mean $logger) Open
Open
$this->logger = $logger;
- Exclude checks
Variable $return
was undeclared, but array fields are being added to it. Open
Open
$return[] = [
- Exclude checks
Invalid offset "time"
of array type array{insert_id:}
Open
Open
$time = number_format($query->debug[$count]['time'] * 1000, 2);
- Exclude checks
Possibly zero references to use statement for classlike/namespace Renderable
(\Automatorm\Database\Interfaces\Renderable)
Open
Open
use Automatorm\Database\Interfaces\Renderable;
- Exclude checks
Return type of getLogger()
is undeclared type \Psr\Log\LoggerInterface
Open
Open
public function getLogger();
- Exclude checks
Variable $this
is undeclared Open
Open
$value = $this->$method();
- Exclude checks
Argument 1 (object)
is null
but \get_class()
takes object
Open
Open
$namespace = explode('\\', get_class($value));
- Exclude checks