Your project should not use invalid parameter and return typehints
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_typehint
- /**
- * @param $callback
- * @return $this
- * @throws \Errbit\Exception\Exception
- */
- public function onNotify($callback): static
- {
- if (!is_callable($callback)) {
- throw new Exception('Notify callback must be callable');
- }
emgiezet