Call to a member function guessExtension() on null code example
Example: call to a member function guessextension() on string
// I had to change this:
public function getImage(): ?string {}
public function setImage(string $image): self {}
// To this (both without 'string'):
public function getImage() {}
public function setImage( $image): self {}