Skip to content

Commit

Permalink
BUGFIX: remove :void annotations to improve PHP 7.1 compatibility
Browse files Browse the repository at this point in the history
some bigger clients are still running PHP 7.1.
  • Loading branch information
skurfuerst committed Mar 7, 2018
1 parent 63b79f5 commit 8d9ef3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Classes/Neos/Neos/Ui/Controller/BackendServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class BackendServiceController extends ActionController
* @param ResponseInterface $response
* @return void
*/
public function initializeController(RequestInterface $request, ResponseInterface $response): void
public function initializeController(RequestInterface $request, ResponseInterface $response)
{
parent::initializeController($request, $response);
$this->feedbackCollection->setControllerContext($this->getControllerContext());
Expand All @@ -119,7 +119,7 @@ public function initializeController(RequestInterface $request, ResponseInterfac
* @param string $documentNodeContextPath
* @return void
*/
protected function updateWorkspaceInfo(string $documentNodeContextPath): void
protected function updateWorkspaceInfo(string $documentNodeContextPath)
{
$updateWorkspaceInfo = new UpdateWorkspaceInfo();
$documentNode = $this->nodeService->getNodeFromContextPath($documentNodeContextPath, null, null, true);
Expand All @@ -136,7 +136,7 @@ protected function updateWorkspaceInfo(string $documentNodeContextPath): void
* @param ChangeCollection $changes
* @return void
*/
public function changeAction(ChangeCollection $changes): void
public function changeAction(ChangeCollection $changes)
{
try {
$count = $changes->count();
Expand Down Expand Up @@ -164,7 +164,7 @@ public function changeAction(ChangeCollection $changes): void
* @param string $targetWorkspaceName
* @return void
*/
public function publishAction(array $nodeContextPaths, string $targetWorkspaceName): void
public function publishAction(array $nodeContextPaths, string $targetWorkspaceName)
{
try {
$targetWorkspace = $this->workspaceRepository->findOneByName($targetWorkspaceName);
Expand Down Expand Up @@ -197,7 +197,7 @@ public function publishAction(array $nodeContextPaths, string $targetWorkspaceNa
* @param array $nodeContextPaths
* @return void
*/
public function discardAction(array $nodeContextPaths): void
public function discardAction(array $nodeContextPaths)
{
try {
foreach ($nodeContextPaths as $contextPath) {
Expand Down Expand Up @@ -255,7 +255,7 @@ public function discardAction(array $nodeContextPaths): void
* @return void
* @throws \Exception
*/
public function changeBaseWorkspaceAction(string $targetWorkspaceName, NodeInterface $documentNode): void
public function changeBaseWorkspaceAction(string $targetWorkspaceName, NodeInterface $documentNode)
{
try {
$targetWorkspace = $this->workspaceRepository->findOneByName($targetWorkspaceName);
Expand Down Expand Up @@ -337,7 +337,7 @@ public function initializeLoadTreeAction()
* @param boolean $includeRoot
* @return void
*/
public function loadTreeAction(NodeTreeBuilder $nodeTreeArguments, $includeRoot = false): void
public function loadTreeAction(NodeTreeBuilder $nodeTreeArguments, $includeRoot = false)
{
$nodeTreeArguments->setControllerContext($this->controllerContext);
$this->view->assign('value', $nodeTreeArguments->build($includeRoot));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Redirect implements FeedbackInterface
* @param NodeInterface $node
* @return void
*/
public function setNode(NodeInterface $node): void
public function setNode(NodeInterface $node)
{
$this->node = $node;
}
Expand Down

0 comments on commit 8d9ef3b

Please sign in to comment.