Skip to content

Commit

Permalink
attribute to remove 8.1 deprecation notice (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell authored Jan 13, 2022
1 parent ece9790 commit 2fe060c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Util/ArrayCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public function last()
*
* @return \ArrayIterator<int|string, mixed>
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new \ArrayIterator($this->elements);
Expand Down Expand Up @@ -251,6 +252,7 @@ public function offsetExists($offset): bool
*
* @phpstan-return TValue|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->elements[$offset] ?? null;
Expand All @@ -267,6 +269,7 @@ public function offsetGet($offset)
* @phpstan-param TKey|null $offset
* @phpstan-param TValue $value
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if ($offset === null) {
Expand All @@ -285,6 +288,7 @@ public function offsetSet($offset, $value)
*
* @phpstan-param TKey $offset
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
if (!\array_key_exists($offset, $this->elements)) {
Expand Down
1 change: 1 addition & 0 deletions src/Util/PrioritizedList.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function add($item, int $priority): void
*
* @phpstan-return iterable<int, T>
*/
#[\ReturnTypeWillChange]
public function getIterator(): iterable
{
if ($this->optimized === null) {
Expand Down

0 comments on commit 2fe060c

Please sign in to comment.