From b41bb18369be3c176ec92981f78c17f3588f5f2c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 22 Sep 2023 06:30:31 +0200 Subject: [PATCH] Docs: fix incorrect type --- src/Whip_MessageDismisser.php | 2 +- tests/TestCase.php | 2 +- tests/WPMessageDismissListenerTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Whip_MessageDismisser.php b/src/Whip_MessageDismisser.php index 881a7f2..87c2327 100644 --- a/src/Whip_MessageDismisser.php +++ b/src/Whip_MessageDismisser.php @@ -20,7 +20,7 @@ class Whip_MessageDismisser { /** * The current time. * - * @var string + * @var int */ protected $currentTime; diff --git a/tests/TestCase.php b/tests/TestCase.php index af22e54..4fbf988 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -24,7 +24,7 @@ class Whip_TestCase extends PHPUnit_Framework_TestCase { * cross-version compatible manner. * * @param string $exception The class name of the exception to expect. - * @param string|null $message Optional. The exception message to expect. + * @param string $message Optional. The exception message to expect. * @param int|string|null $code Optional. The exception code to expect. * * @return void diff --git a/tests/WPMessageDismissListenerTest.php b/tests/WPMessageDismissListenerTest.php index 817e026..20c6016 100644 --- a/tests/WPMessageDismissListenerTest.php +++ b/tests/WPMessageDismissListenerTest.php @@ -23,7 +23,7 @@ class WPMessageDismissListener extends Whip_TestCase { * @param string $nonce The nonce to test. * @param int $verifyNonceTimes The times to call wp_verify_nonce. * @param bool $isCorrectNonce Whether the nonce is correct. - * @param bool $dismissTimes The times to call dismiss. + * @param int $dismissTimes The times to call dismiss. */ public function testDismiss( $action, $nonce, $verifyNonceTimes, $isCorrectNonce, $dismissTimes ) { $dismisser = $this->getMockBuilder( 'Whip_MessageDismisser' )