[Test-Only] enforce strict type checking for php api tests

This commit is contained in:
Dipak Acharya
2021-11-29 11:17:20 +05:45
parent 54d450eddd
commit f8b0f69dd0
4 changed files with 6 additions and 6 deletions
@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* ownCloud
*
@@ -163,7 +163,7 @@ class SpacesContext implements Context {
* @throws Exception
*/
public function getSpaceByNameFromResponse(string $name): array {
$response = json_decode($this->featureContext->getResponse()->getBody(), true, 512, JSON_THROW_ON_ERROR);
$response = json_decode((string)$this->featureContext->getResponse()->getBody(), true, 512, JSON_THROW_ON_ERROR);
$spaceAsArray = $response;
if (isset($response['name']) && $response['name'] === $name) {
return $response;