Skip to content

Commit 2b5370d

Browse files
committed
BUGFIX: Index postfix should be string
1 parent 419c50b commit 2b5370d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Classes/Command/NodeIndexQueueCommandController.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@ class NodeIndexQueueCommandController extends CommandController
102102
* Index all nodes by creating a new index and when everything was completed, switch the index alias.
103103
*
104104
* @param string $workspace
105+
* @throws ConfigurationException
105106
* @throws Exception
106-
* @throws StopActionException
107-
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
108107
* @throws StopCommandException
108+
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
109+
* @throws \Flowpack\ElasticSearch\Exception
110+
* @throws \Neos\Flow\Http\Exception
109111
*/
110112
public function buildCommand(string $workspace = null): void
111113
{
112-
$indexPostfix = time();
114+
$indexPostfix = (string) time();
113115
$indexName = $this->createNextIndex($indexPostfix);
114116
$this->updateMapping($indexPostfix);
115117

0 commit comments

Comments
 (0)