Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Processor resource method accepting empty argument
Browse files Browse the repository at this point in the history
Empty -r argument load resources on same folder as input file
  • Loading branch information
Eihen committed Feb 5, 2018
1 parent 5d3296e commit 66385ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function params(array $params)
*/
public function resource(string $path)
{
$this->args['resource'] = !empty($path) ? "-r $path" : '';
$this->args['resource'] = $path !== null ? "-r $path" : '';

return $this;
}
Expand Down

0 comments on commit 66385ce

Please sign in to comment.