Issues (867)

blog/src/Asset/AppAsset.php (2 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Asset;
6
7
use Yiisoft\Assets\AssetBundle;
0 ignored issues
show
The type Yiisoft\Assets\AssetBundle was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Yiisoft\Yii\Bootstrap5\Assets\BootstrapAsset;
0 ignored issues
show
The type Yiisoft\Yii\Bootstrap5\Assets\BootstrapAsset was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
final class AppAsset extends AssetBundle
11
{
12
    public ?string $basePath = '@assets';
13
14
    public ?string $baseUrl = '@assetsUrl';
15
16
    public ?string $sourcePath = '@resources/asset';
17
18
    public array $css = [
19
        'css/site.css',
20
    ];
21
22
    public array $js = [
23
        'js/app.js',
24
    ];
25
26
    public array $depends = [
27
        BootstrapAsset::class,
28
        Bootstrap5IconsAsset::class,
29
    ];
30
}
31