diff --git a/Services/DetailPageProcessor.php b/Services/DetailPageProcessor.php index 5ec1d69..a0b0004 100644 --- a/Services/DetailPageProcessor.php +++ b/Services/DetailPageProcessor.php @@ -135,7 +135,7 @@ private function query(): array ); $arResult['type'] = 'article'; $arResult['timePublished'] = $ob['TIMESTAMP_X']; - $arResult['url'] = $this->getFullUrl((string)$ob['DETAIL_PAGE_URL']) ?? ''; + $arResult['url'] = $this->getFullUrl($ob['DETAIL_PAGE_URL']) ?? ''; $idPicture = (int)$ob['PREVIEW_PICTURE']; if (!$idPicture) { diff --git a/composer.json b/composer.json index f52c8bc..6faa5d9 100644 --- a/composer.json +++ b/composer.json @@ -39,9 +39,7 @@ "symfony/cache": "^4 || ^5" }, "require-dev": { - "proklung/bitrix-phpunit-testing-tools": "^1.0", - "proklung/phpunit-testing-tools": "^1.0", - "symfony/framework-bundle": "^3.4 || ^4.0 || ^5.0" + "proklung/bitrix-phpunit-testing-tools": "^1.0" }, "extra": { "installer-paths": { diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..f120cbe --- /dev/null +++ b/psalm.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +