Skip to content

Commit 4236ce7

Browse files
committed
Merge remote-tracking branch 'origin/8.x' into 8.x
2 parents fa3a14f + fd0864a commit 4236ce7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CHANGELOG-6.x.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Release Notes for 6.x
22

3-
## [Unreleased](https://github.com/laravel/framework/compare/v6.20.23...6.x)
3+
## [Unreleased](https://github.com/laravel/framework/compare/v6.20.24...6.x)
4+
5+
6+
## [v6.20.24 (2021-04-20)](https://github.com/laravel/framework/compare/v6.20.23...v6.20.24)
7+
8+
### Fixed
9+
- Fixed required_if boolean validation ([#36969](https://github.com/laravel/framework/pull/36969))
410

511

612
## [v6.20.23 (2021-04-13)](https://github.com/laravel/framework/compare/v6.20.22...v6.20.23)

src/Illuminate/Collections/Traits/EnumeratesValues.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -753,13 +753,7 @@ public function reduce(callable $callback, $initial = null)
753753
*/
754754
public function reduceWithKeys(callable $callback, $initial = null)
755755
{
756-
$result = $initial;
757-
758-
foreach ($this as $key => $value) {
759-
$result = $callback($result, $value, $key);
760-
}
761-
762-
return $result;
756+
return $this->reduce($callback, $initial);
763757
}
764758

765759
/**

0 commit comments

Comments
 (0)