brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Possibly zero references to use statement for classlike/namespace LoggerInterface (\Psr\Log\LoggerInterface)
Open

use Psr\Log\LoggerInterface;
Severity: Minor
Found in src/DataLayer/Fake/Connection.php by phan

Possibly zero references to use statement for classlike/namespace DataAccessInterface (\Automatorm\Interfaces\DataAccess)
Open

use Automatorm\Interfaces\DataAccess as DataAccessInterface;
Severity: Minor
Found in src/DataLayer/Fake/Data.php by phan

Return type of getLogger() is undeclared type \Psr\Log\LoggerInterface
Open

    public function getLogger()
Severity: Minor
Found in src/DataLayer/Database/Connection.php by phan

Reference to undeclared property \Automatorm\DataLayer\Database\Connection->logger (Did you mean $logger)
Open

        $this->logger = $logger;
Severity: Minor
Found in src/DataLayer/Database/Connection.php by phan

Variable $return was undeclared, but array fields are being added to it.
Open

            $return[] = [
Severity: Info
Found in src/DataLayer/Fake/DataAccess.php by phan

Possibly zero references to use statement for classlike/namespace DataAccessInterface (\Automatorm\Interfaces\DataAccess)
Open

use Automatorm\Interfaces\DataAccess as DataAccessInterface;
Severity: Minor
Found in src/DataLayer/Fake/DataStore.php by phan

Possibly zero references to use statement for classlike/namespace SqlString (\Automatorm\Database\SqlString)
Open

use Automatorm\Database\SqlString;
Severity: Minor
Found in src/Database/QueryBuilder/Table.php by phan

null passed to foreach instead of array
Open

                foreach ($value as $obj) {
Severity: Minor
Found in src/Orm/Dump.php by phan

Argument 1 (string) is \Automatorm\Orm\Model|\JsonSerializable but \strlen() takes string
Open

        if (strlen($string) > $length) {
Severity: Minor
Found in src/Orm/Dump.php by phan

Assigning array[][][] to property but \Automatorm\Orm\Model::$instance is object[][][]
Open

            static::$instance[$namespace][$table][$id] = [];
Severity: Minor
Found in src/Orm/Model.php by phan

Static call to undeclared method \Automatorm\Orm\Traits\ClosureTree::findAll
Open

        return static::findAll(['id' => $children]);
Severity: Critical
Found in src/Orm/Traits/ClosureTree.php by phan

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

        unset($this->connection);

Call with 2 arg(s) to \natsort() which only takes 1 arg(s)
Open

                            $result = natsort($b[$sort], $a[$sort]);
Severity: Info
Found in src/DataLayer/Fake/DataAccess.php by phan

Variable $this is undeclared
Open

            foreach (get_class_methods($this) as $method) {
Severity: Minor
Found in src/Orm/Dump.php by phan

null passed to foreach instead of array
Open

                            foreach ($value as $obj) {
Severity: Minor
Found in src/Orm/Dump.php by phan

Argument 1 (object) is null but \method_exists() takes object|string
Open

                if (method_exists($value, '__toString')) {
Severity: Minor
Found in src/Orm/Dump.php by phan

Invalid offset 1 of array type array{0:array{}}|array{0:} in an array destructuring assignment
Open

        list($root, $results) = $query->execute();
Severity: Minor
Found in src/Orm/Traits/ClosureTree.php by phan

Reference to undeclared property \Automatorm\Orm\Traits\ClosureTree->id
Open

            QueryBuilder::select($this->closureTable, ['child_id'])->where(['parent_id' => $this->id, 'depth' => 1])
Severity: Minor
Found in src/Orm/Traits/ClosureTree.php by phan

Parameter $logger has undeclared type ?\Psr\Log\LoggerInterface
Open

    public static function registerPDO(PDO $pdo, LoggerInterface $logger = null)
Severity: Minor
Found in src/DataLayer/Database/Connection.php by phan

Possibly zero references to use statement for classlike/namespace Renderable (\Automatorm\Database\Interfaces\Renderable)
Open

use Automatorm\Database\Interfaces\Renderable;
Severity: Minor
Found in src/Database/QueryBuilder/SubQuery.php by phan
Severity
Category
Status
Source
Language