Use $array[] instead of array_push

This commit is contained in:
Kleis Auke Wolthuizen
2017-11-21 17:43:47 +01:00
parent ee4a42ea06
commit 5caae74370
3 changed files with 4 additions and 10 deletions

View File

@@ -14,9 +14,7 @@ class UARules implements Configurations
public function addUA(string $value)
{
$object = (object)['target' => 'ua', 'value' => $value];
array_push($this->configs, $object);
$this->configs[] = (object)['target' => 'ua', 'value' => $value];
}
public function getArray(): array