brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

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

Variable $this is undeclared
Open

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

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

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

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 $model was undeclared, but array fields are being added to it.
Open

            $model[$normalised] = [

Doc-block of countAll contains declared return type \Automatorm\Orm\Collection which is incompatible with the return type int declared in the signature
Open

     * @return \Automatorm\Orm\Collection
Severity: Minor
Found in src/Orm/Model.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

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

Parameter $logger has undeclared type ?\Psr\Log\LoggerInterface
Open

    public static function register(array $db, LoggerInterface $logger = null, array $options = [])
Severity: Minor
Found in src/DataLayer/Database/Connection.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

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

use Automatorm\Interfaces\Connection as ConnectionInterface;
Severity: Minor
Found in src/DataLayer/Fake/DataStore.php by phan

Parameter $logger has undeclared type ?\Psr\Log\LoggerInterface
Open

    protected function __construct($details, array $options = [], LoggerInterface $logger = null)
Severity: Minor
Found in src/DataLayer/Database/Connection.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

Reference to undeclared property \Automatorm\Interfaces\Connection->data (Did you mean $data)
Open

            $keys = $this->connection->data->getCrossSchemaForeignKeys();
Severity: Minor
Found in src/DataLayer/Fake/SchemaGenerator.php by phan

Variable $this is undeclared
Open

            $output .= "  <span><strong>id</strong></span> => ".$this->id."\n";
Severity: Minor
Found in src/Orm/Dump.php by phan

Suspicious type false of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

        parent::__construct('Query error: '.$query->error, $query, $previous_exception);
Severity: Minor
Found in src/Exception/Query.php by phan

Expected an object instance or a class name when accessing a static property, but saw an expression with type null
Open

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

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

use Automatorm\Exception;
Severity
Category
Status
Source
Language