mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
Replaced most each() calls with foreach() in preparation to support php 8
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -27,7 +27,9 @@ class Controller {
|
||||
|
||||
|
||||
public function args($args = array()){
|
||||
while(list($key, $value) = each($args)) $this->data[$key] = $value;
|
||||
foreach($args as $key => $value) {
|
||||
$this->data[$key] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user