Showing 93 of 93 total issues
Call to method getPath
from undeclared class \Phug\Util\SourceLocationInterface
Open
Open
$locationPath = realpath($location->getPath());
- Exclude checks
Call to method getCompiler
from undeclared class \Phug\Renderer
Open
Open
$formatter = $this->renderer->getCompiler()->getFormatter();
- Exclude checks
Call to method getOuterNode
from undeclared class \Phug\Parser\NodeInterface
Open
Open
$node = $node->getOuterNode() ?: $node->getParent()) {
- Exclude checks
Argument 1 (threshold)
is null
but \Phug\Tester\Coverage::setThreshold()
takes int
defined at /code/src/Phug/Tester/Coverage.php:511
Open
Open
$coverage->setThreshold($coverageThreshold);
- Exclude checks
Call to method getOption
from undeclared class \Phug\Renderer
Open
Open
static::emptyDirectory($this->renderer->getOption('cache_dir'));
- Exclude checks
Checking instanceof against undeclared class \Phug\Parser\Node\DocumentNode
Open
Open
if ($node instanceof NodeInterface && !($node instanceof DocumentNode) && !$list->offsetExists($node)) {
- Exclude checks
Call to method getCompiler
from undeclared class \Phug\Renderer
Open
Open
$document = $this->renderer->getCompiler()->getParser()->parse($contents, $file);
- Exclude checks
Checking instanceof against undeclared class \Phug\Parser\NodeInterface
Open
Open
$node instanceof NodeInterface;
- Exclude checks
Return type of getRenderer()
is undeclared type \Phug\Renderer
Open
Open
public function getRenderer(): Renderer
- Exclude checks
Argument 1 (input)
is int
but \str_pad()
takes string
Open
Open
str_pad($nodes, 3, ' ', STR_PAD_LEFT).' '.
- Exclude checks
Property \Phug\Tester\TestCase->renderer
has undeclared type \Phug\Renderer
Open
Open
protected $renderer;
- Exclude checks
Return type of getRenderer()
is undeclared type \Phug\Renderer
Open
Open
protected function getRenderer()
- Exclude checks
@throws type of setUp
has undeclared type \Phug\RendererException
Open
Open
protected function setUp(): void
- Exclude checks
Static property \Phug\Tester\Coverage::$singleton
is declared to have type static,
but the only instance is shared among all subclasses (Did you mean \Phug\Tester\Coverage)
Open
Open
* @var static
- Exclude checks
Call to method getSourceLocation
from undeclared class \Phug\Parser\NodeInterface
Open
Open
$this->recordLocation($node->getSourceLocation());
- Exclude checks
Call to method getSourceLocation
from undeclared class \Phug\Parser\NodeInterface
Open
Open
if (!($node instanceof DocumentNode) && ($location = $node->getSourceLocation())) {
- Exclude checks
Argument 1 (input)
is 0|int
but \str_pad()
takes string
Open
Open
str_pad($_coveredNodes, 3, ' ', STR_PAD_LEFT).' / '.
- Exclude checks
Class extends undeclared class \PHPUnit\Framework\TestCase
(Did you mean class \Phug\Tester\TestCase) Open
Open
abstract class TestCase extends \PHPUnit\Framework\TestCase
- Exclude checks
Static call to undeclared method \ProjectExample\ViewsTest::assertContains
Open
Open
self::assertContains('Bar', $html);
- Exclude checks
Static call to undeclared method \ProjectExample\ViewsTest::assertNotContains
Open
Open
self::assertNotContains('Foo', $html);
- Exclude checks