Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 8, 2018
1 parent 20e2919 commit 0362a90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ public function assertSessionHasErrors($keys = [], $format = null, $errorBag = '
$errors = app('session.store')->get('errors')->getBag($errorBag);

foreach ($keys as $key => $value) {
if (is_array($value)) {
PHPUnit::assertArraySubset($value, $errors->get($key, $format));
if (is_int($value)) {
PHPUnit::assertTrue($errors->has($value), "Session missing error: $value");
} else {
PHPUnit::assertContains($value, $errors->get($key, $format));
}
Expand Down

1 comment on commit 0362a90

@XavRsl
Copy link

@XavRsl XavRsl commented on 0362a90 Feb 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an error on line 749, it should be:

if (is_int($key)) {

This is how it used to be before the change and revert on this.

Please sign in to comment.