Skip to content

Commit

Permalink
Fix new typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jan 20, 2025
1 parent 2e20c87 commit 2f546d5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion stubs/extensions/amqp.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion stubs/extensions/redis.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
2 changes: 1 addition & 1 deletion tests/ArrayFunctionCallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function foo(array $arr) {
'$b' => 'int',
],
],
'arrayPopNonEmptyAfterCountGreatorOrEqualToOneReversed' => [
'arrayPopNonEmptyAfterCountGreaterOrEqualToOneReversed' => [
'code' => '<?php
/** @var array<string, int> */
$a = ["a" => 5, "b" => 6, "c" => 7];
Expand Down
2 changes: 1 addition & 1 deletion tests/InterfaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public function blah() {
$blah = (new B())->blah();',
],
'interfaceExtendsTraversible' => [
'interfaceExtendsTraversable' => [
'code' => '<?php
/**
* @extends IteratorAggregate<mixed, mixed>
Expand Down

0 comments on commit 2f546d5

Please # to comment.