Skip to content

Commit

Permalink
add tags
Browse files Browse the repository at this point in the history
  • Loading branch information
indianmodassir committed Oct 19, 2024
1 parent ad32c34 commit 7cd153f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct($value)

public function __call($method, $arguments)
{
return $this->input($this->value)->$method($arguments);
return $this->input($this->value)->$method(...$arguments);
}

/**
Expand Down
6 changes: 4 additions & 2 deletions tests/data.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

use Data\Data;

$out = Data::input('/home/root/dir/focus')->explode('/')->push('last', 'log');
$output = new Data(' local - username ');

print_r($out);
$data = $output->trim()->toUpper()->explode('-');

print_r($data);

?>

0 comments on commit 7cd153f

Please sign in to comment.