force first char uppercase for compatibility to older versions.
This commit is contained in:
parent
a921d0bb69
commit
b403f5a041
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ class AbstractModel implements \ArrayAccess {
|
|||
protected $data = array();
|
||||
|
||||
public function get($key) {
|
||||
$key = ucfirst($key);
|
||||
return (isset($this->data[$key])) ? $this->data[$key] : null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue