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.
It seems like new \Symfony\Component\V...aintValidatorFactory()) of type object<Symfony\Component...tor\RecursiveValidator> is incompatible with the declared type object<Frameworkless\Sym...tor\RecursiveValidator> of property $validator.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
27
new ExecutionContextFactory(new IdentityTranslator()), new LazyLoadingMetadataFactory(new StaticMethodLoader()), new ConstraintValidatorFactory()
28
);
29
}
30
31
public function preSave(\Propel\Runtime\Connection\ConnectionInterface $con = null){
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.