From 2f546d598f2a6c78457a5e3c0afa3df8ff198343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Mon, 20 Jan 2025 14:54:20 +0000 Subject: [PATCH] Fix new typos --- src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php | 2 +- stubs/extensions/amqp.phpstub | 2 +- stubs/extensions/redis.phpstub | 2 +- tests/ArrayFunctionCallTest.php | 2 +- tests/InterfaceTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php index c19c8df51a6..5d00386cb29 100644 --- a/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/ExpressionAnalyzer.php @@ -388,7 +388,7 @@ private static function handleExpression( $statements_analyzer->getSuppressedIssues(), ); - // Analyze as if it were a normal assignent and just pretend the reference doesn't exist + // Analyze as if it were a normal assignment and just pretend the reference doesn't exist return self::analyzeAssignment($statements_analyzer, $stmt, $context, $from_stmt); } diff --git a/stubs/extensions/amqp.phpstub b/stubs/extensions/amqp.phpstub index 3b40ae3766d..379862e5f5f 100644 --- a/stubs/extensions/amqp.phpstub +++ b/stubs/extensions/amqp.phpstub @@ -747,7 +747,7 @@ class AMQPConnection * * TLS support (see https://www.rabbitmq.com/ssl.html for details): * 'cacert' => Path to the CA cert file in PEM format.. - * 'cert' => Path to the client certificate in PEM foramt. + * 'cert' => Path to the client certificate in PEM format. * 'key' => Path to the client key in PEM format. * 'verify' => Enable or disable peer verification. If peer verification is enabled then the common name in the * server certificate must match the server name. Peer verification is enabled by default. diff --git a/stubs/extensions/redis.phpstub b/stubs/extensions/redis.phpstub index 97fd397b2dd..2d1f57c894a 100644 --- a/stubs/extensions/redis.phpstub +++ b/stubs/extensions/redis.phpstub @@ -475,7 +475,7 @@ class Redis { public function xadd(string $key, string $id, array $values, int $maxlen = 0, bool $approx = false): string|false {} - public function xclaim(string $key, string $group, string $consumer, int $min_iddle, array $ids, array $options): string|array|false {} + public function xclaim(string $key, string $group, string $consumer, int $min_idle, array $ids, array $options): string|array|false {} public function xdel(string $key, array $ids): Redis|int|false {} diff --git a/tests/ArrayFunctionCallTest.php b/tests/ArrayFunctionCallTest.php index d4d36571066..19645a83fab 100644 --- a/tests/ArrayFunctionCallTest.php +++ b/tests/ArrayFunctionCallTest.php @@ -640,7 +640,7 @@ function foo(array $arr) { '$b' => 'int', ], ], - 'arrayPopNonEmptyAfterCountGreatorOrEqualToOneReversed' => [ + 'arrayPopNonEmptyAfterCountGreaterOrEqualToOneReversed' => [ 'code' => ' */ $a = ["a" => 5, "b" => 6, "c" => 7]; diff --git a/tests/InterfaceTest.php b/tests/InterfaceTest.php index 91d56c16a64..e8504c8873b 100644 --- a/tests/InterfaceTest.php +++ b/tests/InterfaceTest.php @@ -395,7 +395,7 @@ public function blah() { $blah = (new B())->blah();', ], - 'interfaceExtendsTraversible' => [ + 'interfaceExtendsTraversable' => [ 'code' => '