Skip to content

Commit 1e9ff59

Browse files
author
Fatih Aydın
committed
refactor: Change usages $this->input to $this->all()
1 parent 8ff553b commit 1e9ff59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Support/ValidatedInput.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function has($keys)
4040
$keys = is_array($keys) ? $keys : func_get_args();
4141

4242
foreach ($keys as $key) {
43-
if (! Arr::has($this->input, $key)) {
43+
if (! Arr::has($this->all(), $key)) {
4444
return false;
4545
}
4646
}
@@ -69,7 +69,7 @@ public function only($keys)
6969
{
7070
$results = [];
7171

72-
$input = $this->input;
72+
$input = $this->all();
7373

7474
$placeholder = new stdClass;
7575

@@ -94,7 +94,7 @@ public function except($keys)
9494
{
9595
$keys = is_array($keys) ? $keys : func_get_args();
9696

97-
$results = $this->input;
97+
$results = $this->all();
9898

9999
Arr::forget($results, $keys);
100100

@@ -109,7 +109,7 @@ public function except($keys)
109109
*/
110110
public function merge(array $items)
111111
{
112-
return new static(array_merge($this->input, $items));
112+
return new static(array_merge($this->all(), $items));
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)