Skip to content

[Bug]: @deprecated annotation doesn't work for arrays in context of validation rules #1085

@romalytvynenko

Description

@romalytvynenko

What happened?

@deprecated doesn't work here:

public function store(Request $request): JsonResponse
    {
        $data = $request->validate([
            /** @deprecated */
            'forcedSkas' => 'sometimes',
            'forcedSkas.*' => ['uuid','distinct','exists:subjects,public_id', new ValidSkaSubject()],
            'programmeAim' => ['sometimes', 'uuid', 'exists:programme_aims,public_id']
        ]);

How to reproduce the bug

Fix

Package Version

0.13.12

PHP Version

any

Laravel Version

12.x

Which operating systems does with happen with?

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions