brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

Argument 2 (cmp_function) is Closure(mixed,mixed):bool but \usort() takes callable(mixed,mixed):int
Open

                usort($returnData, function ($a, $b) use ($sort) {
Severity: Minor
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

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

            $this->debug[$count]['time'] = microtime(true) - $time;
Severity: Minor
Found in src/Database/Query.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

Variable $this is undeclared
Open

                    $ids = $this->{$key}->id->toArray();
Severity: Minor
Found in src/Orm/Dump.php by phan

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

                                $objstrings[] = \Automatorm\Orm\Dump::safeTruncate($obj);
Severity: Info
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

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

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

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

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

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

            QueryBuilder::select($this->closureTable, ['parent_id'])->where(['child_id' => $this->id, 'depth>=' => 1])->orderBy('depth')
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
Severity
Category
Status
Source
Language