Skip to content

Commit e563339

Browse files
author
Fatih Aydın
committed
refactor: Change usages isset($this->input[$name]) to $this->exists($name)
1 parent 5e97d89 commit e563339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Support/ValidatedInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function __set($name, $value)
173173
*/
174174
public function __isset($name)
175175
{
176-
return isset($this->input[$name]);
176+
return $this->exists($name);
177177
}
178178

179179
/**
@@ -195,7 +195,7 @@ public function __unset($name)
195195
*/
196196
public function offsetExists($key): bool
197197
{
198-
return isset($this->input[$key]);
198+
return $this->exists($key);
199199
}
200200

201201
/**

0 commit comments

Comments
 (0)