Skip to content

Commit

Permalink
fix(TextProcessing): Make task type template param of IProvider and T…
Browse files Browse the repository at this point in the history
…ask covariant

otherwise we cannot use them reasonably

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Nov 29, 2023
1 parent 0da05fc commit a6e2d8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/public/TextProcessing/IProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* This is the interface that is implemented by apps that
* implement a text processing provider
* @template T of ITaskType
* @template-covariant T of ITaskType
* @since 27.1.0
*/
interface IProvider {
Expand Down
2 changes: 1 addition & 1 deletion lib/public/TextProcessing/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* This is a text processing task
* @since 27.1.0
* @psalm-template T of ITaskType
* @psalm-template-covariant T of ITaskType
* @psalm-template S as class-string<T>
* @psalm-template P as IProvider<T>
*/
Expand Down

0 comments on commit a6e2d8d

Please sign in to comment.