The expression return $resolver = $this...nuFile($request) : null could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
45
? $resolver->resolveSubmenuFile($request)
46
: null;
47
}
48
49
public function defineParentFile(ServerRequestInterface $request): string
The expression return $resolver = $this...ntFile($request) : null could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.