diff --git a/.github/release-drafter-config.yml b/.github/release-drafter-config.yml index c559b59a..5065d8a3 100644 --- a/.github/release-drafter-config.yml +++ b/.github/release-drafter-config.yml @@ -1,7 +1,7 @@ name-template: 'v$NEXT_MINOR_VERSION' tag-template: 'v$NEXT_MINOR_VERSION' change-template: '- $TITLE (#$NUMBER)' -filter-by-comitish: true +filter-by-commitish: true commitish: v3.x autolabeler: diff --git a/examples/debuggable_connection.php b/examples/debuggable_connection.php index 1515f88a..e5ae9bae 100644 --- a/examples/debuggable_connection.php +++ b/examples/debuggable_connection.php @@ -34,11 +34,11 @@ class SimpleDebuggableConnection extends StreamConnection private function storeDebug(CommandInterface $command, $direction) { - $firtsArg = $command->getArgument(0); + $firstArg = $command->getArgument(0); $timestamp = round(microtime(true) - $this->tstart, 4); $debug = $command->getId(); - $debug .= isset($firtsArg) ? " $firtsArg " : ' '; + $debug .= isset($firstArg) ? " $firstArg " : ' '; $debug .= "$direction $this"; $debug .= " [{$timestamp}s]"; diff --git a/tests/Predis/Command/Redis/APPEND_Test.php b/tests/Predis/Command/Redis/APPEND_Test.php index 6bc5ef12..e5de3c92 100644 --- a/tests/Predis/Command/Redis/APPEND_Test.php +++ b/tests/Predis/Command/Redis/APPEND_Test.php @@ -91,7 +91,7 @@ class APPEND_Test extends PredisCommandTestCase * @group connected * @requiresRedisVersion >= 2.0.0 */ - public function testReturnsTheLenghtOfTheStringAfterAppend(): void + public function testReturnsTheLengthOfTheStringAfterAppend(): void { $redis = $this->getClient(); diff --git a/tests/Predis/Command/Redis/LINSERT_Test.php b/tests/Predis/Command/Redis/LINSERT_Test.php index 2aba086f..59093937 100644 --- a/tests/Predis/Command/Redis/LINSERT_Test.php +++ b/tests/Predis/Command/Redis/LINSERT_Test.php @@ -78,7 +78,7 @@ class LINSERT_Test extends PredisCommandTestCase /** * @group connected */ - public function testReturnsLengthOfListAfterInser(): void + public function testReturnsLengthOfListAfterInsert(): void { $redis = $this->getClient(); diff --git a/tests/Predis/Command/Redis/MIGRATE_Test.php b/tests/Predis/Command/Redis/MIGRATE_Test.php index d81b9199..9ac5c198 100644 --- a/tests/Predis/Command/Redis/MIGRATE_Test.php +++ b/tests/Predis/Command/Redis/MIGRATE_Test.php @@ -148,7 +148,7 @@ class MIGRATE_Test extends PredisCommandTestCase * @requiresRedisVersion >= 2.6.0 * @group slow */ - public function testReturnsErrorOnUnreacheableDestination(): void + public function testReturnsErrorOnUnreachableDestination(): void { $this->expectException('Predis\Response\ServerException'); $this->expectExceptionMessage('IOERR'); diff --git a/tests/Predis/Connection/Cluster/RedisClusterTest.php b/tests/Predis/Connection/Cluster/RedisClusterTest.php index e0e5177d..925c5de1 100644 --- a/tests/Predis/Connection/Cluster/RedisClusterTest.php +++ b/tests/Predis/Connection/Cluster/RedisClusterTest.php @@ -1123,7 +1123,7 @@ class RedisClusterTest extends PredisTestCase /** * @group disconnected */ - public function testParseIPv6AddresseAndPortPairInRedirectionPayload(): void + public function testParseIPv6AddressAndPortPairInRedirectionPayload(): void { $movedResponse = new Response\Error('MOVED 1970 2001:db8:0:f101::2:6379'); diff --git a/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php b/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php index 35fc9d85..4ade51ab 100644 --- a/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php +++ b/tests/Predis/Protocol/Text/Handler/BulkResponseTest.php @@ -42,7 +42,7 @@ class BulkResponseTest extends PredisTestCase public function testBulk(): void { $bulk = 'This is a bulk string.'; - $bulkLengh = strlen($bulk); + $bulkLength = strlen($bulk); $connection = $this->getMockConnectionOfType('Predis\Connection\CompositeConnectionInterface'); $connection @@ -51,12 +51,12 @@ class BulkResponseTest extends PredisTestCase $connection ->expects($this->once()) ->method('readBuffer') - ->with($this->equalTo($bulkLengh + 2)) + ->with($this->equalTo($bulkLength + 2)) ->willReturn("$bulk\r\n"); $handler = new Handler\BulkResponse(); - $this->assertSame($bulk, $handler->handle($connection, (string) $bulkLengh)); + $this->assertSame($bulk, $handler->handle($connection, (string) $bulkLength)); } /**