Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: expecting ShouldQueue on none Mailable class #1274

Open
rabol opened this issue Sep 23, 2024 · 0 comments
Open

[Bug]: expecting ShouldQueue on none Mailable class #1274

rabol opened this issue Sep 23, 2024 · 0 comments
Labels

Comments

@rabol
Copy link

rabol commented Sep 23, 2024

What Happened

When using arch()->preset()->laravel();

I get

Expecting 'app/Mail/Tags/PMTagHeader.php' to implement 'Illuminate\Contracts\Queue\ShouldQueue'.

on this class:

<?php

declare(strict_types=1);

namespace App\Mail\Tags;

use Symfony\Component\Mime\Header\UnstructuredHeader;

// @pest-ignore-next-line
class PMTagHeader extends UnstructuredHeader
{
    public function __construct(string $value)
    {
        parent::__construct('X-PM-Tag', $value);
    }
}

How to Reproduce

Add any class to a subfolder of App/Mail

then use this:

arch()->preset()->laravel();

Sample Repository

No response

Pest Version

3.1.0

PHP Version

8.3.11

Operation System

macOS

Notes

No response

@rabol rabol added the bug label Sep 23, 2024
@rabol rabol changed the title [Bug]: expecting ShouldQueue on non Mailable class [Bug]: expecting ShouldQueue on none Mailable class Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant