for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hyde\Framework\Foundation\Concerns;
use Hyde\Framework\Foundation\FileCollection;
use Hyde\Framework\Foundation\PageCollection;
use Hyde\Framework\Foundation\RouteCollection;
/**
* @internal Single-use trait for the HydeKernel class.
*
* @see \Hyde\Framework\HydeKernel
*/
trait HandlesFoundationCollections
{
public function files(): FileCollection
$this->needsToBeBooted();
return $this->files;
}
public function pages(): PageCollection
return $this->pages;
public function routes(): RouteCollection
return $this->routes;
protected function needsToBeBooted(): void
if (! $this->booted) {
$this->boot();
boot()
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 */
boot();