for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DH\Adf\Builder;
use DH\Adf\Node\Inline\Extension;
trait ExtensionBuilder
{
public function extension(
string $layout,
string $extensionType,
string $extensionKey,
array $parameters,
string $localId
): self {
$mention = new Extension($layout, $extensionType, $extensionKey, $parameters, $localId);
$this->append($mention);
append()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
append($mention);
return $this;
}