Skip to content

Commit

Permalink
Merge branch '5.6' of github.com:laravel/framework into 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Apr 26, 2018
2 parents ec5947e + de8aa76 commit 088f286
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public function unprepared($query)
}

$this->recordsHaveBeenModified(
$change = ($this->getPdo()->exec($query) === false ? false : true)
$change = $this->getPdo()->exec($query) !== false
);

return $change;
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ protected function passesOptionalCheck($attribute)
$data = ValidationData::initializeAndGatherData($attribute, $this->data);

return array_key_exists($attribute, $data)
|| in_array($attribute, array_keys($this->data));
|| array_key_exists($attribute, $this->data);
}

/**
Expand Down Expand Up @@ -558,7 +558,7 @@ protected function shouldStopValidating($attribute)
}

if (isset($this->failedRules[$attribute]) &&
in_array('uploaded', array_keys($this->failedRules[$attribute]))) {
array_key_exists('uploaded', $this->failedRules[$attribute])) {
return true;
}

Expand Down

0 comments on commit 088f286

Please sign in to comment.