Skip to content

Commit

Permalink
Merge pull request #112 from laminas/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
Lock file maintenance
  • Loading branch information
gsteel authored Jan 3, 2024
2 parents f0f1573 + 4d6340c commit b80cbae
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 40 deletions.
45 changes: 23 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
<file src="src/AbstractOptions.php">
<DocblockTypeContradiction>
<code><![CDATA[! is_array($options) && ! $options instanceof Traversable]]></code>
Expand All @@ -25,6 +25,9 @@
<DocblockTypeContradiction>
<code><![CDATA[! is_array($data) && ! is_object($data)]]></code>
</DocblockTypeContradiction>
<InvalidCast>
<code>$key</code>
</InvalidCast>
<InvalidPropertyAssignmentValue>
<code><![CDATA[$this->storage]]></code>
</InvalidPropertyAssignmentValue>
Expand Down Expand Up @@ -71,9 +74,6 @@
</UnsupportedReferenceUsage>
</file>
<file src="src/ArrayUtils.php">
<MixedArgumentTypeCoercion>
<code>$callback</code>
</MixedArgumentTypeCoercion>
<MixedAssignment>
<code>$a[$key]</code>
<code>$a[$key]</code>
Expand Down Expand Up @@ -217,7 +217,7 @@
<code>$priority</code>
</InvalidArgument>
<MethodSignatureMismatch>
<code>public function insert($datum, $priority)</code>
<code>public function insert($value, $priority)</code>
</MethodSignatureMismatch>
<MethodSignatureMustProvideReturnType>
<code>insert</code>
Expand Down Expand Up @@ -370,8 +370,6 @@
<file src="test/FastPriorityQueueTest.php">
<MixedAssignment>
<code>$datum</code>
<code>$item</code>
<code>$test[]</code>
<code>$test[]</code>
<code>$test[]</code>
<code>$test[]</code>
Expand Down
14 changes: 7 additions & 7 deletions src/ArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,27 +333,27 @@ public function &offsetGet(mixed $key)
/**
* Sets the value at the specified key to value
*
* @param TKey $key
* @param TKey $offset
* @param TValue $value
* @return void
*/
#[ReturnTypeWillChange]
public function offsetSet(mixed $key, mixed $value)
public function offsetSet(mixed $offset, mixed $value)
{
$this->storage[$key] = $value;
$this->storage[$offset] = $value;
}

/**
* Unsets the value at the specified key
*
* @param TKey $key
* @param TKey $offset
* @return void
*/
#[ReturnTypeWillChange]
public function offsetUnset(mixed $key)
public function offsetUnset(mixed $offset)
{
if ($this->offsetExists($key)) {
unset($this->storage[$key]);
if ($this->offsetExists($offset)) {
unset($this->storage[$offset]);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/PriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected function getQueue()
if (! $this->queue instanceof \SplPriorityQueue) {
throw new Exception\DomainException(sprintf(
'PriorityQueue expects an internal queue of type SplPriorityQueue; received "%s"',
$this->queue::class
$queue::class
));
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/SplPriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ class SplPriorityQueue extends \SplPriorityQueue implements Serializable
* Utilizes {@var $serial} to ensure that values of equal priority are
* emitted in the same order in which they are inserted.
*
* @param TValue $datum
* @param TValue $value
* @param TPriority $priority
* @return void
*/
public function insert($datum, $priority)
public function insert($value, $priority)
{
if (! is_array($priority)) {
$priority = [$priority, $this->serial--];
}

parent::insert($datum, $priority);
parent::insert($value, $priority);
}

/**
Expand Down

0 comments on commit b80cbae

Please sign in to comment.