Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Missing 1 type from the __constructor injection (array) #7

Closed
Cannonb4ll opened this issue Mar 26, 2019 · 3 comments
Closed

Missing 1 type from the __constructor injection (array) #7

Cannonb4ll opened this issue Mar 26, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@Cannonb4ll
Copy link

I've used this package a while ago, you've made some fixes but I am still running into one:

Argument 1 passed to App\Mail\ContactEmail::__construct() must be of the type array, string given
    use Queueable, SerializesModels;
 
    public $data;
 
    /**
     * Create a new message instance.
     *
     * @param array $data
     */
    public function __construct(array $data = [])
    {
        $this->data = $data;
    }
@Qoraiche
Copy link
Owner

Qoraiche commented Mar 26, 2019

Hi @Cannonb4ll, thanks for reporting this,

The new version (currently v1.1.2) may fix the constructor problem, but still not able to output array data on the mailable previews (of course i will fix this in the next updates).

@Qoraiche Qoraiche added the bug Something isn't working label Mar 26, 2019
@Qoraiche
Copy link
Owner

@Cannonb4ll can you please confirm that is working? so I can close the ticket

@Cannonb4ll
Copy link
Author

Ah yes sorry, it is solved this way 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants