Allow multiple / attribute usages on the same method #2744
Annotations
10 errors and 2 warnings
Run Linter:
src/mantle/database/model/class-model.php#L578
Method Mantle\Database\Model\Model::create() should return static(Mantle\Database\Model\Model<TModelObject of object>) but returns static(Mantle\Database\Model\Model<object>).
|
Run Linter:
src/mantle/database/model/class-model.php#L591
Method Mantle\Database\Model\Model::first_or_new() should return static(Mantle\Database\Model\Model<TModelObject of object>) but returns static(Mantle\Database\Model\Model<object>).
|
Run Linter:
src/mantle/database/query/class-builder.php#L238
Method Mantle\Database\Query\Builder::create() should return static(Mantle\Database\Query\Builder<TModel of Mantle\Database\Model\Model>) but returns static(Mantle\Database\Query\Builder<Mantle\Database\Model\Model>).
|
Run Linter:
src/mantle/database/query/class-collection.php#L67
Instanceof between static(Mantle\Database\Query\Collection<TKey of (int|string), TMapValue>) and Mantle\Database\Query\Collection will always evaluate to true.
|
Run Linter:
src/mantle/database/query/class-collection.php#L71
Instanceof between TModel of Mantle\Database\Model\Model and Mantle\Database\Model\Model will always evaluate to true.
|
Run Linter:
src/mantle/database/query/class-collection.php#L90
Instanceof between static(Mantle\Database\Query\Collection<TMapWithKeysKey of (int|string), TMapWithKeysValue>) and Mantle\Database\Query\Collection will always evaluate to true.
|
Run Linter:
src/mantle/database/query/class-collection.php#L94
Instanceof between TModel of Mantle\Database\Model\Model and Mantle\Database\Model\Model will always evaluate to true.
|
Run Linter:
src/mantle/database/query/class-collection.php#L183
Method Mantle\Database\Query\Collection::zip() should return static(Mantle\Database\Query\Collection<int, static(Mantle\Database\Query\Collection<TKey of (int|string), (TModel of Mantle\Database\Model\Model)|TZipValue>)>) but returns Mantle\Support\Collection<int, Mantle\Support\Collection<(int|string), mixed>>.
|
Run Linter:
src/mantle/support/class-collection.php#L76
Method Mantle\Support\Collection::from() should return static(Mantle\Support\Collection<TKeyFrom of (int|string), TValueFrom>) but returns static(Mantle\Support\Collection<int, Mantle\Database\Model\Post|null>).
|
Run Linter:
src/mantle/support/class-collection.php#L97
Method Mantle\Support\Collection::times() should return static(Mantle\Support\Collection<int, TTimesValue>) but returns static(Mantle\Support\Collection<int, int<1, max>>).
|
Run Linter
Failed to save: Failed to CreateCacheEntry: Received non-retryable error: Failed request: (409) Conflict: cache entry with the same key, version, and scope already exists
|
Run Linter
Cache save failed.
|
Loading