Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-rainville committed Nov 11, 2024
1 parent 1db248b commit e857cc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Event/DataObjectEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ class DataObjectEvent

/**
* @param class-string<T> $objectClass The class name of the affected DataObject
* @param int $objectID The ID of the affected DataObject
* @param Operation $operation The type of operation performed
* @param int|null $version The version number (for versioned objects)
* @param int|null $memberID The ID of the member who performed the operation
* @param int $objectID The ID of the affected DataObject
* @param Operation $operation The type of operation performed
* @param int|null $version The version number (for versioned objects)
* @param int|null $memberID The ID of the member who performed the operation
*/
public function __construct(
private readonly string $objectClass,
Expand Down
5 changes: 3 additions & 2 deletions src/Listener/DataObjectEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ class DataObjectEventListener
* Creates a new DataObject event listener.
*
* @template T of DataObject
*
* @param Closure(DataObjectEvent<T>): void $callback Callback to execute when an event matches
* @param class-string<T>[] $classes Array of DataObject class names to listen for
* @param Operation[]|null $operations Array of operations to listen for. If null, listens for all operations.
* @param class-string<T>[] $classes Array of DataObject class names to listen for
* @param Operation[]|null $operations Array of operations to listen for. If null, listens for all operations.
*/
public function __construct(
private Closure $callback,
Expand Down

0 comments on commit e857cc7

Please sign in to comment.