- 
                Notifications
    You must be signed in to change notification settings 
- Fork 11.6k
Closed
Description
Laravel Version
11.17
PHP Version
8.2.21
Database Driver & Version
No response
Description
The PR: #52167 accidentally introduced what I think is a potential breaking change related to attribute usage through container. This bug was originally reported here: tallstackui/tallstackui#567.
One of my open-source package contains an attribute that we use only to mark properties to skip certain conditions (see below). After upgrading any of my projects using this package to Laravel 11.17 this error happens:
The source of the error matches the changes made in the PR mentioned above:
Steps To Reproduce
IDK exactly how to reproduce this, but I guess it just try to use an attribute in a public parameter, like this:
<?php
namespace App\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_PROPERTY)]
class SkipDebug
{
    //
}use App\Attributes\SkipDebug;
public function __construct(
    #[SkipDebug]
    public ?string $size = null,
) {
    //
}MGeurts
Metadata
Metadata
Assignees
Labels
No labels

