We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f58c14 commit c0c960dCopy full SHA for c0c960d
src/Definition.php
@@ -27,9 +27,9 @@ class Definition extends AbstractKeyValueStore
27
*
28
* {@inheritdoc}
29
*/
30
- public function __construct(array $data, ?string $basepath = null)
+ public function __construct(array $data)
31
{
32
- $this->setBasepath($basepath ?? getcwd());
+ $this->setBasepath(getcwd());
33
34
parent::__construct($data);
35
}
@@ -47,7 +47,8 @@ public static function fromYamlFile(string $filePath): self
47
throw new \InvalidArgumentException("File ${filePath} could not be parsed as YAML.");
48
49
50
- $instance = new static($data, \dirname($filePath));
+ $instance = new static($data);
51
+ $instance->setBasepath(\dirname($filePath));
52
53
return $instance;
54
0 commit comments