8000 Proxy generator messed with PHP7 void return type hint · Issue #6163 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Proxy generator messed with PHP7 void return type hint #6163
Closed
@vpArth

Description

@vpArth

Proxy generator generate followed code:

public function setStatus(string $status) : void
{
  $this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
  return parent::setStatus($status);
}

return statement should be omitted if void return typehint presented.

It should be just parent::setStatus($status); without return


workaround is not to use void return typehint

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0