Skip to content

fix(optional-policies): resolve null property warnings and improve UX #54

fix(optional-policies): resolve null property warnings and improve UX

fix(optional-policies): resolve null property warnings and improve UX #54

Triggered via pull request December 4, 2024 09:32
Status Failure
Total duration 42s
Artifacts

backend.yml

on: pull_request
Matrix: run / phpstan
Matrix: run / test
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 1 warning
run / PHPStan PHP 8.3: src/Repositories/PolicyRepository.php#L69
Method FoF\Terms\Repositories\PolicyRepository::findOrFail() should return FoF\Terms\Policy but returns Illuminate\Database\Eloquent\Model.
run / PHPStan PHP 8.3: src/Repositories/PolicyRepository.php#L85
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.3: src/Repositories/PolicyRepository.php#L89
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.3
Process completed with exit code 1.
run / PHPStan PHP 8.0
The job was canceled because "_8_3" failed.
run / PHPStan PHP 8.0: src/Repositories/PolicyRepository.php#L69
Method FoF\Terms\Repositories\PolicyRepository::findOrFail() should return FoF\Terms\Policy but returns Illuminate\Database\Eloquent\Model.
run / PHPStan PHP 8.0: src/Repositories/PolicyRepository.php#L85
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.0: src/Repositories/PolicyRepository.php#L89
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.0
Process completed with exit code 1.
run / PHPStan PHP 8.2
The job was canceled because "_8_3" failed.
run / PHPStan PHP 8.2: src/Repositories/PolicyRepository.php#L69
Method FoF\Terms\Repositories\PolicyRepository::findOrFail() should return FoF\Terms\Policy but returns Illuminate\Database\Eloquent\Model.
run / PHPStan PHP 8.2: src/Repositories/PolicyRepository.php#L85
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.2: src/Repositories/PolicyRepository.php#L89
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.2
Process completed with exit code 1.
run / PHPStan PHP 8.1
The job was canceled because "_8_3" failed.
run / PHPStan PHP 8.1: src/Repositories/PolicyRepository.php#L69
Method FoF\Terms\Repositories\PolicyRepository::findOrFail() should return FoF\Terms\Policy but returns Illuminate\Database\Eloquent\Model.
run / PHPStan PHP 8.1: src/Repositories/PolicyRepository.php#L85
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.1: src/Repositories/PolicyRepository.php#L89
Access to an undefined property FoF\Terms\Policy::$pivot.
run / PHPStan PHP 8.1
The operation was canceled.
run / PHPStan PHP 8.3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636