It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
The method __toString() does not exist on spec\Slick\Event\Domain\EventIdSpec. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
39
$this->/** @scrutinizer ignore-call */
40
__toString()->shouldBe($this->identifier);
Loading history...
40
}
41
42
function it_throws_an_exception_when_identifier_is_not_a_valid_uuid()
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.