Skip to content

Commit c0c960d

Browse files
committed
Revert unused changes to Definition
1 parent 1f58c14 commit c0c960d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Definition.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class Definition extends AbstractKeyValueStore
2727
*
2828
* {@inheritdoc}
2929
*/
30-
public function __construct(array $data, ?string $basepath = null)
30+
public function __construct(array $data)
3131
{
32-
$this->setBasepath($basepath ?? getcwd());
32+
$this->setBasepath(getcwd());
3333

3434
parent::__construct($data);
3535
}
@@ -47,7 +47,8 @@ public static function fromYamlFile(string $filePath): self
4747
throw new \InvalidArgumentException("File ${filePath} could not be parsed as YAML.");
4848
}
4949

50-
$instance = new static($data, \dirname($filePath));
50+
$instance = new static($data);
51+
$instance->setBasepath(\dirname($filePath));
5152

5253
return $instance;
5354
}

0 commit comments

Comments
 (0)