Allow admin user to view and edit all photos #107
Closed
Annotations
10 errors and 1 warning
|
Run php-actions/phpstan@v3:
app/Rules/PhotosBelongToUser.php#L25
Cannot access property $is_admin on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/PhotosController.php#L128
Cannot access property $is_admin on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/PhotosController.php#L128
Cannot access property $id on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/PhotoItemsController.php#L77
Cannot access property $is_admin on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/PhotoItemsController.php#L77
Cannot access property $id on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/PhotoItemsController.php#L47
Cannot access property $is_admin on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/PhotoItemsController.php#L47
Cannot access property $id on App\Models\User|null.
|
|
Run php-actions/phpstan@v3:
app/Http/Controllers/Photos/BulkPhotoItemsController.php#L0
Ignored error pattern #^Method App\\Http\\Controllers\\Photos\\BulkPhotoItemsController::authorizeAdminOrOwnPhotos\(\) has parameter \$photoIds with no value type specified in iterable type array\.$# (missingType.iterableValue) in path /app/app/Http/Controllers/Photos/BulkPhotoItemsController.php was not matched in reported errors.
|
|
Run php-actions/phpstan@v3:
app/Actions/Photos/GetPreviousPhotoAction.php#L0
Ignored error pattern #^Call to an undefined method Illuminate\\Contracts\\Database\\Eloquent\\Builder::filter\(\)\.$# (method.notFound) in path /app/app/Actions/Photos/GetPreviousPhotoAction.php was not matched in reported errors.
|
|
Run php-actions/phpstan@v3:
app/Actions/Photos/GetNextPhotoAction.php#L20
Ignored error pattern #^Call to an undefined method Illuminate\\Contracts\\Database\\Eloquent\\Builder::filter\(\)\.$# (method.notFound) in path /app/app/Actions/Photos/GetNextPhotoAction.php is expected to occur 2 times, but occurred only 1 time.
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
Loading