brokencube/automatorm

View on GitHub

Showing 452 of 452 total issues

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

Variable $this is undeclared
Open

                                [$contents['column_name'] => $this->id],
Severity: Minor
Found in src/Orm/Dump.php by phan

Checking instanceof against undeclared class \Automatorm\Orm\DateTimeInterface (Did you mean interface \DateTimeInterface)
Open

            case $value instanceof DateTimeInterface:
Severity: Critical
Found in src/Orm/Dump.php by phan

Argument 1 (string) is \Automatorm\Orm\Model|\JsonSerializable but \htmlspecialchars() takes string
Open

        return htmlspecialchars($string);
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

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

use Automatorm\Database\SqlString;

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

Reference to undeclared property \Exception->data (Did you mean $data)
Open

                return 'ERROR_DURING_MASS_ASSIGNMENT: During ->assignData(), the following exception occurred: ' . $e->makeMessage($e->code, $e->data);
Severity: Minor
Found in src/Exception/Model.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 $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

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

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);

Reference to undeclared property \Automatorm\DataLayer\Fake\Connection->logger
Open

        return $this->logger;
Severity: Minor
Found in src/DataLayer/Fake/Connection.php by phan

Call to undeclared method \Automatorm\Interfaces\Connection::getDataStore
Open

                            $this->connection->getDataStore()->getData($key['schema'])->addCrossSchemaForeignKey($refTableName, 'one-to-many', $propertyName, $value);
Severity: Critical
Found in src/DataLayer/Fake/SchemaGenerator.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

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

            $model[$normalised] = [

Reference to undeclared property \Automatorm\Database\QueryBuilder->currentJoin
Open

        $this->currentJoin = end($this->joins);
Severity: Minor
Found in src/Database/QueryBuilder.php by phan

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

use Automatorm\Exception;
Severity: Minor
Found in src/Generator/Model.php by phan

Found a return statement with a value in the implementation of the magic method \Automatorm\Orm\Data::__set, expected void return type
Open

    public function __set($var, $value)
Severity: Info
Found in src/Orm/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
Severity
Category
Status
Source
Language