Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit aa707d5

Browse files
committed
lint: affected files
1 parent af037fa commit aa707d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Testing/FakeOpenFga.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,10 @@ public function resetChecks(): self
551551
* @param string $user
552552
* @param string $relation
553553
* @param string $object
554-
* @return bool
555554
*/
556555
public function revoke(string $user, string $relation, string $object): bool
557556
{
558-
$this->tuples = array_filter($this->tuples, static fn ($tuple): bool => ! ($tuple['user'] === $user && $tuple['relation'] === $relation && $tuple['object'] === $object));
557+
$this->tuples = array_filter($this->tuples, static fn (array $tuple): bool => ! ($tuple['user'] === $user && $tuple['relation'] === $relation && $tuple['object'] === $object));
559558

560559
return true;
561560
}
@@ -627,7 +626,7 @@ public function writeBatch(array $writes = [], array $deletes = []): void
627626

628627
// Apply deletes
629628
foreach ($deletes as $delete) {
630-
$this->tuples = array_filter($this->tuples, static fn ($tuple): bool => ! ($tuple['user'] === $delete['user']
629+
$this->tuples = array_filter($this->tuples, static fn (array $tuple): bool => ! ($tuple['user'] === $delete['user']
631630
&& $tuple['relation'] === $delete['relation']
632631
&& $tuple['object'] === $delete['object']));
633632
}

0 commit comments

Comments
 (0)