brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

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

                $clauses['`pivotjoin`.`' . $clauseColumn . '`' . $prefix] = $clauseValue;

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

Variable $options is undeclared
Open

                    foreach ((array) $options['sort'] as $sortby) {
Severity: Minor
Found in src/DataLayer/Fake/DataAccess.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

Assigning null to property but \Automatorm\Database\QueryBuilder\Expression->column is \Automatorm\Database\QueryBuilder\Column
Open

                $this->column = null;

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

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

use Automatorm\Interfaces\Connection;
Severity: Minor
Found in src/Interfaces/DataAccess.php by phan

Saw an @param annotation for options, but it was not found in the param list of function countAll(array|mixed[] $where = null) : \Automatorm\Orm\Collection|int
Open

     * @param mixed[] $options Options to pass: limit => int, offeset => int, sort => "column direction"
Severity: Info
Found in src/Orm/Model.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

Checking instanceof against undeclared class \Psr\Cache\CacheItemPoolInterface
Open

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

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

            $parent = static::get($row['parent_id']);
Severity: Critical
Found in src/Orm/Traits/ClosureTree.php by phan
Severity
Category
Status
Source
Language