diff --git a/tests/src/Unit/Password/Drupal8PasswordTest.php b/tests/src/Unit/Password/Drupal8PasswordTest.php
index 18a46e7..e11afea 100644
--- a/tests/src/Unit/Password/Drupal8PasswordTest.php
+++ b/tests/src/Unit/Password/Drupal8PasswordTest.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\php_password\Unit\Password;
 
+use Prophecy\PhpUnit\ProphecyTrait;
 use Drupal\Core\Password\PasswordInterface;
 use Drupal\php_password\Password\Drupal8Password;
 use Drupal\Tests\UnitTestCase;
@@ -16,6 +17,7 @@
 class Drupal8PasswordTest extends UnitTestCase {
 
 
+  use ProphecyTrait;
   /**
    * @var \Drupal\Core\Password\PasswordInterface|\Prophecy\Prophecy\ObjectProphecy
    */
@@ -26,7 +28,7 @@ class Drupal8PasswordTest extends UnitTestCase {
    */
   protected $legacyPassword;
 
-  public function setUp() {
+  public function setUp(): void {
     parent::setUp();
     $this->phpPassword = $this->prophesize(PasswordInterface::class);
     $this->legacyPassword = $this->prophesize(PasswordInterface::class);
