It seems like $value can also be of type null; however, parameter $obj of Dallgoot\Yaml\isOneOf() does only seem to accept object, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $value can also be of type Dallgoot\Yaml\NodeList; however, parameter $node of Dallgoot\Yaml\NodeList::__construct() does only seem to accept Dallgoot\Yaml\Node|null, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
43
$value = new NodeList(/** @scrutinizer ignore-type */ $value);
It seems like $this->_tag can also be of type null; however, parameter $identifier of Dallgoot\Yaml\TagFactory::isKnown() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
45
if (TagFactory::isKnown(/** @scrutinizer ignore-type */ $this->_tag)) {
It seems like $value can also be of type null; however, parameter $value of Dallgoot\Yaml\TagFactory::transform() does only seem to accept object, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $this->_tag can also be of type null; however, parameter $identifier of Dallgoot\Yaml\TagFactory::transform() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $this->_tag can also be of type null; however, parameter $tagName of Dallgoot\Yaml\Tag::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation