Skip to content

belongs_to's "as" is built from the local key #84

belongs_to's "as" is built from the local key

belongs_to's "as" is built from the local key #84

Triggered via push September 14, 2023 12:19
Status Failure
Total duration 27s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
phpstan: lib/ActiveRecord.php#L76
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#L81
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#L92
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#L177
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#L195
Access to an undefined property ICanBoogie\ActiveRecord\Schema\Column::$auto_increment.
phpstan: lib/ActiveRecord.php#L218
Parameter #1 $primary_key of method ICanBoogie\ActiveRecord<TKey of array<string>|int|string>::update_primary_key() expects non-empty-array<non-empty-string>|int|non-empty-string, mixed given.
phpstan: lib/ActiveRecord/Config/TableDefinition.php#L63
Method ICanBoogie\ActiveRecord\Config\TableDefinition::make_alias() should return non-empty-string but returns string.
phpstan: lib/ActiveRecord/Connection.php#L73
Property ICanBoogie\ActiveRecord\Connection::$driver is never written, only read.
phpstan: lib/ActiveRecord/Connection.php#L91
Property ICanBoogie\ActiveRecord\Connection::$profiling type has no value type specified in iterable type array.
phpstan: lib/ActiveRecord/Connection.php#L109
Property ICanBoogie\ActiveRecord\Connection::$table_name_prefix (non-empty-string) does not accept string.
phpstan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/