Skip to content

Commit 045284c

Browse files
committed
Fix behat runtime errors by using php 7.x
1 parent 72f49e5 commit 045284c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PHPCR/Shell/Test/CliContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function beforeScenario()
3939

4040
$this->rootPath = realpath(__DIR__.'/../../../..');
4141
$dir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'phpcr-shell'.DIRECTORY_SEPARATOR.
42-
md5(microtime() * rand(0, 10000));
42+
md5(microtime(true) * rand(0, 10000));
4343
$this->fixturesDir = realpath(__DIR__.'/../../../../features/fixtures/');
4444

4545
$this->workingDir = $dir;

src/PHPCR/Shell/Test/ContextBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract protected function createTester();
5050
public function beforeScenario()
5151
{
5252
$dir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'phpcr-shell'.DIRECTORY_SEPARATOR.
53-
md5(microtime() * rand(0, 10000));
53+
md5(microtime(true) * rand(0, 10000));
5454

5555
$this->workingDir = $dir;
5656

0 commit comments

Comments
 (0)