Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,7 @@ public function toArray()
*
* @return array
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return array_map(function ($value) {
Expand Down Expand Up @@ -1229,6 +1230,7 @@ public function toJson($options = 0)
*
* @return \ArrayIterator
*/
#[\ReturnTypeWillChange]
public function getIterator()
{
return new ArrayIterator($this->items);
Expand All @@ -1250,6 +1252,7 @@ public function getCachingIterator($flags = CachingIterator::CALL_TOSTRING)
*
* @return int
*/
#[\ReturnTypeWillChange]
public function count()
{
return count($this->items);
Expand All @@ -1271,6 +1274,7 @@ public function toBase()
* @param mixed $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return array_key_exists($key, $this->items);
Expand All @@ -1282,6 +1286,7 @@ public function offsetExists($key)
* @param mixed $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->items[$key];
Expand All @@ -1294,6 +1299,7 @@ public function offsetGet($key)
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
if (is_null($key)) {
Expand All @@ -1309,6 +1315,7 @@ public function offsetSet($key, $value)
* @param string $key
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($key)
{
unset($this->items[$key]);
Expand Down