Issues (31)

src/Message/HasAttachmentsTrait.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Nip\Mail\Message;
4
5
/**
6
 * Trait HasAttachmentsTrait.
7
 */
8
trait HasAttachmentsTrait
9
{
10
    /**
11
     * @param $content
12
     * @param $name
13
     *
14
     * @deprecated use attach() instead
15
     */
16
    public function attachFromContent($content, $name = null, $contentType = null)
17 1
    {
18
        return $this->attach($content, $name, $contentType);
0 ignored issues
show
The method attach() does not exist on Nip\Mail\Message\HasAttachmentsTrait. Did you maybe mean attachFromContent()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
        return $this->/** @scrutinizer ignore-call */ attach($content, $name, $contentType);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
19 1
    }
20
}
21