brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Static property 'tablename' on \Automatorm\Orm\Collection is undeclared
Open

                $table = $value::$tablename;
Severity: Critical
Found in src/Orm/Dump.php by phan

Argument 1 (object) is null but \get_class() takes object
Open

                $namespace = explode('\\', get_class($value));
Severity: Minor
Found in src/Orm/Dump.php by phan

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

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

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

     * @param int[] $ids Ids of rows
Severity: Minor
Found in src/Orm/Model.php by phan

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

            if (!$cache instanceof Psr16 && !$cache instanceof Psr6) {
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

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

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

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

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

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

        $database = $this->connection->schemaName;
Severity: Minor
Found in src/DataLayer/Fake/SchemaGenerator.php by phan

Invalid offset "time" of array type array{insert_id:}
Open

            $time = number_format($query->debug[$count]['time'] * 1000, 2);
Severity: Minor
Found in src/Database/Query.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 Expression (\Automatorm\Database\QueryBuilder\Expression)
Open

    Table, SubQuery, Column, CountColumn, Join, Expression, Data, Where
Severity: Minor
Found in src/Database/QueryBuilder.php by phan

Call to undeclared method \Throwable::makeMessage
Open

                return 'ERROR_DURING_MASS_ASSIGNMENT: During ->assignData(), the following exception occurred: ' . $e->makeMessage($e->code, $e->data);
Severity: Critical
Found in src/Exception/Model.php by phan

Saw an @param annotation for function, but it was not found in the param list of function sortById(array $listOfIds) : \Automatorm\Orm\Collection
Open

     * @param callable $function Callable to use to sort the array
Severity: Info
Found in src/Orm/Collection.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\Cache\CacheItemPoolInterface
Open

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

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

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