@@ -91,7 +91,7 @@ public function testAdd()
9191 $ s = Set::of ()->add (42 );
9292
9393 $ this ->assertSame (1 , $ s ->size ());
94- $ s ->add (24 );
94+ $ _ = $ s ->add (24 );
9595 $ this ->assertSame (1 , $ s ->size ());
9696 $ s = $ s ->add (24 );
9797 $ this ->assertInstanceOf (Set::class, $ s );
@@ -231,7 +231,7 @@ public function testForeach()
231231 ->add (4 );
232232 $ count = 0 ;
233233
234- $ s ->foreach (function (int $ v ) use (&$ count ) {
234+ $ _ = $ s ->foreach (function (int $ v ) use (&$ count ) {
235235 $ this ->assertSame (++$ count , $ v );
236236 });
237237 $ this ->assertSame (4 , $ count );
@@ -557,7 +557,7 @@ public function testSafeguard()
557557 $ stop = new \Exception ;
558558
559559 try {
560- Set::of (new \ArrayObject ([1 ]), new \ArrayObject ([2 ]), new \ArrayObject ([3 ]), new \ArrayObject ([1 ]))->safeguard (
560+ $ _ = Set::of (new \ArrayObject ([1 ]), new \ArrayObject ([2 ]), new \ArrayObject ([3 ]), new \ArrayObject ([1 ]))->safeguard (
561561 Set::of (),
562562 static fn ($ unique , $ value ) => match ($ unique ->contains ($ value [0 ])) {
563563 true => throw $ stop ,
@@ -587,7 +587,7 @@ public function testSafeguard()
587587 },
588588 );
589589 $ this ->assertFalse ($ loaded );
590- $ set ->toList ();
590+ $ _ = $ set ->toList ();
591591 $ this ->fail ('it should throw ' );
592592 } catch (\Exception $ e ) {
593593 $ this ->assertSame ($ stop , $ e );
@@ -609,7 +609,7 @@ public function testSafeguard()
609609 },
610610 );
611611 $ this ->assertFalse ($ loaded );
612- $ set ->toList ();
612+ $ _ = $ set ->toList ();
613613 $ this ->fail ('it should throw ' );
614614 } catch (\Exception $ e ) {
615615 $ this ->assertSame ($ stop , $ e );
0 commit comments