Rework query interfaces #116
Annotations
10 errors
phpstan:
lib/ActiveRecord.php#L67
Type array<string>|int|string in generic type ICanBoogie\ActiveRecord\Model<array<string>|int|string, static(ICanBoogie\ActiveRecord<TKey of array<string>|int|string>)> in PHPDoc tag @var for property ICanBoogie\ActiveRecord::$model is not subtype of template type TKey of array<string>|int|string of class ICanBoogie\ActiveRecord\Model.
|
phpstan:
lib/ActiveRecord.php#L72
Type array<string>|int|string in generic type ICanBoogie\ActiveRecord\Model<array<string>|int|string, static(ICanBoogie\ActiveRecord<TKey of array<string>|int|string>)> in PHPDoc tag @return is not subtype of template type TKey of array<string>|int|string of class ICanBoogie\ActiveRecord\Model.
|
phpstan:
lib/ActiveRecord.php#L83
Type array<string>|int|string in generic type ICanBoogie\ActiveRecord\Model<array<string>|int|string, static(ICanBoogie\ActiveRecord<TKey of array<string>|int|string>)> in PHPDoc tag @param for parameter $model is not subtype of template type TKey of array<string>|int|string of class ICanBoogie\ActiveRecord\Model.
|
phpstan:
lib/ActiveRecord.php#L168
Parameter #1 $properties of method ICanBoogie\ActiveRecord<TKey of array<string>|int|string>::alter_persistent_properties() expects array<non-empty-string, mixed>, array<string, mixed> given.
|
phpstan:
lib/ActiveRecord.php#L186
Access to an undefined property ICanBoogie\ActiveRecord\Schema\Column::$auto_increment.
|
phpstan:
lib/ActiveRecord.php#L204
No error to ignore is reported on line 204.
|
phpstan:
lib/ActiveRecord.php#L210
Cannot cast mixed to int.
|
phpstan:
lib/ActiveRecord/Driver/BasicDriver.php#L64
Parameter #1 $source of static method ICanBoogie\DateTime::from() expects DateTime|string, DateTimeInterface given.
|
phpstan:
lib/ActiveRecord/Driver/MySQLDriver.php#L20
Parameter #2 $prefixed_table_name of method ICanBoogie\ActiveRecord\Driver\TableRenderer::render() expects non-empty-string, string given.
|
phpstan:
lib/ActiveRecord/Driver/SQLiteDriver.php#L18
Parameter #2 $prefixed_table_name of method ICanBoogie\ActiveRecord\Driver\TableRenderer::render() expects non-empty-string, string given.
|