зеркало из https://github.com/nextcloud/cookbook.git
Prevent return type bug
Reported by psalm upon pushing Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
6570d34902
Коммит
fc29da7eea
|
@ -71,7 +71,7 @@ class JsonService {
|
||||||
* @return bool true, if the schema matches that of a schema.org object
|
* @return bool true, if the schema matches that of a schema.org object
|
||||||
*/
|
*/
|
||||||
public function isSchemaContext(string $context): bool {
|
public function isSchemaContext(string $context): bool {
|
||||||
return preg_match('@^https?://schema\.org/?$@', $context);
|
return preg_match('@^https?://schema\.org/?$@', $context) == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче