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 getMessage() does not exist on spec\Knp\DictionaryBundl...ryNotFoundExceptionSpec. 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
23
$this->/** @scrutinizer ignore-call */
24
getMessage()->shouldReturn('The dictionary "dico_name" has not been found in the registry.');
Loading history...
24
}
25
26
function it_can_be_build_with_a_dictionary_name_and_a_list_of_known_dictionaries()
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.