brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

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

use Automatorm\Exception;
Severity: Minor
Found in src/Generator/Model.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

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

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

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

            ->where(['p.child_id' => $parent->id, 'c.parent_id' => $this->id])
Severity: Minor
Found in src/Orm/Traits/ClosureTree.php by phan

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

            ->where(['child_id' => $this->id])
Severity: Minor
Found in src/Orm/Traits/ClosureTree.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

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

use Automatorm\OperatorParser;
Severity: Minor
Found in src/DataLayer/Fake/Data.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;

Argument 1 (string) is \ArrayAccess|\Automatorm\Orm\Collection|\Automatorm\Orm\Model|\Countable|\Iterator|\JsonSerializable|\Traversable|iterable but \strlen() takes string
Open

        if (strlen($string) > $length) {
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
Severity
Category
Status
Source
Language