brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Invalid offset 0 of array type array{}
Open

        return static::find(['id' => $results[0]['parent_id']]);
Severity: Minor
Found in src/Orm/Traits/ClosureTree.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

Call to undeclared method \Automatorm\Orm\Traits\ClosureTree::getConnection
Open

        $query = new Query($this->getConnection());
Severity: Critical
Found in src/Orm/Traits/ClosureTree.php by phan

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

        return static::get($rootid);
Severity: Critical
Found in src/Orm/Traits/ClosureTree.php by phan

Possibly zero references to use statement for classlike/namespace Schema (\Automatorm\Orm\Schema)
Open

use Automatorm\Orm\Schema;
Severity: Minor
Found in src/DataLayer/Fake/DataStore.php by phan

Variable $this is undeclared
Open

                    $count = $this->_data->joinCount($key, []);
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

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|\Automatorm\Orm\Model|\JsonSerializable but \htmlspecialchars() takes string
Open

        return htmlspecialchars($string);
Severity: Minor
Found in src/Orm/Dump.php by phan

Call to undeclared method \Automatorm\Orm\Traits\ClosureTree::getConnection
Open

        $query = new Query($this->getConnection());
Severity: Critical
Found in src/Orm/Traits/ClosureTree.php by phan

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

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

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

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

Assigning array<int></int> to property but \Automatorm\Database\Query->debug is array<int></int>
Open

                $this->debug[$count]['affected_rows'] = $result->rowCount();
Severity: Minor
Found in src/Database/Query.php by phan

Variable $this is undeclared
Open

                    $value = $this->_data->$key;
Severity: Minor
Found in src/Orm/Dump.php by phan

Variable $this is undeclared
Open

                        $value = $this->{$key};
Severity: Minor
Found in src/Orm/Dump.php by phan

Checking instanceof against undeclared class \Psr\SimpleCache\CacheInterface
Open

        if ($cache instanceof Psr16) {
Severity: Critical
Found in src/Orm/Schema.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

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

Reference to undeclared property \Automatorm\Interfaces\Connection->name
Open

            $message = "{$time}ms Con:{$query->connection->name} | $preview";
Severity: Minor
Found in src/Database/Query.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/Join.php by phan
Severity
Category
Status
Source
Language