Showing 452 of 452 total issues
Possibly zero references to use statement for classlike/namespace LoggerInterface
(\Psr\Log\LoggerInterface)
Open
Open
use Psr\Log\LoggerInterface;
- 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
Return type of getLogger()
is undeclared type \Psr\Log\LoggerInterface
Open
Open
public function getLogger()
- 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
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 SqlString
(\Automatorm\Database\SqlString)
Open
Open
use Automatorm\Database\SqlString;
- Exclude checks
null
passed to foreach instead of array Open
Open
foreach ($value as $obj) {
- Exclude checks
Argument 1 (string)
is \Automatorm\Orm\Model|\JsonSerializable
but \strlen()
takes string
Open
Open
if (strlen($string) > $length) {
- Exclude checks
Assigning array[][][]
to property but \Automatorm\Orm\Model::$instance
is object[][][]
Open
Open
static::$instance[$namespace][$table][$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
Call with 2 arg(s) to \natsort()
which only takes 1 arg(s) Open
Open
$result = natsort($b[$sort], $a[$sort]);
- Exclude checks
Variable $this
is undeclared Open
Open
foreach (get_class_methods($this) as $method) {
- Exclude checks
null
passed to foreach instead of array Open
Open
foreach ($value as $obj) {
- Exclude checks
Argument 1 (object)
is null
but \method_exists()
takes object|string
Open
Open
if (method_exists($value, '__toString')) {
- Exclude checks
Invalid offset 1
of array type array{0:array{}}|array{0:}
in an array destructuring assignment Open
Open
list($root, $results) = $query->execute();
- Exclude checks
Reference to undeclared property \Automatorm\Orm\Traits\ClosureTree->id
Open
Open
QueryBuilder::select($this->closureTable, ['child_id'])->where(['parent_id' => $this->id, 'depth' => 1])
- Exclude checks
Parameter $logger
has undeclared type ?\Psr\Log\LoggerInterface
Open
Open
public static function registerPDO(PDO $pdo, LoggerInterface $logger = null)
- 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