brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

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

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

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

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

            WHERE p.child_id = {$parent->id} AND 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(['p.child_id' => $parent->id, 'c.parent_id' => $this->id])
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

Suspicious attempt to unset class \Automatorm\DataLayer\Database\Connection's property connection declared at /code/src/DataLayer/Database/Connection.php:52 (This can be done, but is more commonly done for dynamic properties and Phan does not expect this)
Open

        unset($this->connection);

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

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

use Automatorm\Exception;
Severity: Minor
Found in src/DataLayer/Fake/SchemaGenerator.php by phan

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

use Automatorm\Database\SqlString;

Variable $this is undeclared
Open

            $output .= "  <span><strong>id</strong></span> => ".$this->id."\n";
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\SimpleCache\CacheInterface
Open

        if ($cache instanceof Psr16) {
Severity: Critical
Found in src/Orm/Schema.php by phan

Reference to undeclared property \Automatorm\DataLayer\Database\Connection->logger (Did you mean $logger)
Open

        $this->logger = $logger;
Severity: Minor
Found in src/DataLayer/Database/Connection.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

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

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

use Automatorm\Database\Interfaces\Renderable;
Severity: Minor
Found in src/Database/QueryBuilder/SubQuery.php by phan

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

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

Variable $this is undeclared
Open

                        $value = $this->$method();
Severity: Minor
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
Severity
Category
Status
Source
Language