Skip to content

Added phpstan

Added phpstan #3

Triggered via pull request July 22, 2024 10:58
Status Failure
Total duration 1m 32s
Artifacts

phpstan.yml

on: pull_request
php82-laravel-latest-phpstan-postgres
1m 22s
php82-laravel-latest-phpstan-postgres
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
php82-laravel-latest-phpstan-postgres: src/Http/Resources/TopicType/Admin/ScormScoResource.php#L18
Access to an undefined property Illuminate\Database\Eloquent\Collection<int, Peopleaps\Scorm\Model\ScormScoModel>|Peopleaps\Scorm\Model\ScormScoModel::$uuid.
php82-laravel-latest-phpstan-postgres: src/Http/Resources/TopicType/Client/ScormScoResource.php#L18
Access to an undefined property Illuminate\Database\Eloquent\Collection<int, Peopleaps\Scorm\Model\ScormScoModel>|Peopleaps\Scorm\Model\ScormScoModel::$uuid.
php82-laravel-latest-phpstan-postgres: src/Http/Resources/TopicType/Export/Cmi5AuResource.php#L20
Access to an undefined property EscolaLms\TopicTypes\Models\TopicContent\Cmi5Au|Illuminate\Database\Eloquent\Collection<int, EscolaLms\TopicTypes\Models\TopicContent\Cmi5Au>::$resource.
php82-laravel-latest-phpstan-postgres: src/Http/Resources/TopicType/Export/Cmi5AuResource.php#L21
Access to an undefined property EscolaLms\TopicTypes\Models\TopicContent\Cmi5Au|Illuminate\Database\Eloquent\Collection<int, EscolaLms\TopicTypes\Models\TopicContent\Cmi5Au>::$resource.
php82-laravel-latest-phpstan-postgres: src/Http/Resources/TopicType/Export/ScormScoResource.php#L20
Access to an undefined property Illuminate\Database\Eloquent\Collection<int, Peopleaps\Scorm\Model\ScormScoModel>|Peopleaps\Scorm\Model\ScormScoModel::$uuid.
php82-laravel-latest-phpstan-postgres: src/Http/Resources/TopicType/Export/ScormScoResource.php#L21
Access to an undefined property Illuminate\Database\Eloquent\Collection<int, Peopleaps\Scorm\Model\ScormScoModel>|Peopleaps\Scorm\Model\ScormScoModel::$identifier.
php82-laravel-latest-phpstan-postgres: src/Models/TopicContent/Audio.php#L62
Access to an undefined property EscolaLms\TopicTypes\Models\TopicContent\Audio::$length.
php82-laravel-latest-phpstan-postgres: src/Models/TopicContent/Audio.php#L64
Access to an undefined property EscolaLms\TopicTypes\Models\TopicContent\Audio::$length.
php82-laravel-latest-phpstan-postgres: src/Models/TopicContent/H5P.php#L75
Parameter #1 $json of function json_decode expects string, array given.
php82-laravel-latest-phpstan-postgres: src/Models/TopicContent/H5P.php#L93
Variable $library in isset() always exists and is not nullable.
php82-laravel-latest-phpstan-postgres
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
php82-laravel-latest-phpstan-postgres
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/