diff --git a/src/Illuminate/Collections/Collection.php b/src/Illuminate/Collections/Collection.php index dddaafcdac6c..6e59543a5d80 100644 --- a/src/Illuminate/Collections/Collection.php +++ b/src/Illuminate/Collections/Collection.php @@ -995,7 +995,7 @@ public function pop($count = 1) $collectionCount = $this->count(); foreach (range(1, min($count, $collectionCount)) as $item) { - array_push($results, array_pop($this->items)); + $results[] = array_pop($this->items); } return new static($results); @@ -1246,7 +1246,7 @@ public function shift($count = 1) $collectionCount = $this->count(); foreach (range(1, min($count, $collectionCount)) as $item) { - array_push($results, array_shift($this->items)); + $results[] = array_shift($this->items); } return new static($results); diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index 20bacae2e585..70ccb3477d00 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -1163,7 +1163,7 @@ public function hasAttachedData($data, $name, array $options = []) */ public function tag($value) { - array_push($this->tags, $value); + $this->tags[] = $value; return $this; } diff --git a/src/Illuminate/Notifications/Messages/MailMessage.php b/src/Illuminate/Notifications/Messages/MailMessage.php index e8daf25130c8..f01ef667ef16 100644 --- a/src/Illuminate/Notifications/Messages/MailMessage.php +++ b/src/Illuminate/Notifications/Messages/MailMessage.php @@ -320,7 +320,7 @@ public function attachData($data, $name, array $options = []) */ public function tag($value) { - array_push($this->tags, $value); + $this->tags[] = $value; return $this; } diff --git a/tests/Redis/RedisConnectionTest.php b/tests/Redis/RedisConnectionTest.php index 33e10e9748aa..a7f1132a08c2 100644 --- a/tests/Redis/RedisConnectionTest.php +++ b/tests/Redis/RedisConnectionTest.php @@ -709,7 +709,7 @@ public function testItSscansForKeys() foreach ($returnedMembers as $member) { $this->assertContains($member, $members); - array_push($result, $member); + $result[] = $member; } } while ($iterator > 0);