Skip to content

Commit

Permalink
Merge pull request #989 from biigle/patch-1
Browse files Browse the repository at this point in the history
Upgrade PHP dependencies
  • Loading branch information
mzur authored Nov 27, 2024
2 parents 47c52ad + 3099e3d commit 929fcb6
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 216 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/NotificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class NotificationController extends Controller
*/
public function update(Request $request, $id)
{
/** @var \Illuminate\Notifications\DatabaseNotification|null $notification */
$notification = $request->user()->unreadNotifications()->find($id);
if (is_null($notification)) {
abort(Response::HTTP_NOT_FOUND);
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Controllers/Views/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ protected function searchLabelTrees(User $user, $query, $type, $includeFederated

$external = FederatedSearchModel::whereIn('id', $collection->where('external', true)->pluck('id'))->get()->keyBy('id');

/** @phpstan-ignore argument.type */
$results->setCollection($collection->map(function ($item) use ($internal, $external) {
/** @phpstan-ignore property.notFound */
if ($item->external) {
Expand Down Expand Up @@ -175,6 +176,7 @@ protected function searchProjects(User $user, $query, $type, $includeFederatedSe

$external = FederatedSearchModel::whereIn('id', $collection->where('external', true)->pluck('id'))->get()->keyBy('id');

/** @phpstan-ignore argument.type */
$results->setCollection($collection->map(function ($item) use ($internal, $external) {
/** @phpstan-ignore property.notFound */
if ($item->external) {
Expand Down Expand Up @@ -242,6 +244,7 @@ protected function searchVolumes(User $user, $query, $type, $includeFederatedSea

$external = FederatedSearchModel::whereIn('id', $collection->where('external', true)->pluck('id'))->get()->keyBy('id');

/** @phpstan-ignore argument.type */
$results->setCollection($collection->map(function ($item) use ($internal, $external) {
/** @phpstan-ignore property.notFound */
if ($item->external) {
Expand Down
Loading

0 comments on commit 929fcb6

Please sign in to comment.