Skip to content

EspoCRM – Open Source CRM Application

Deprecate warning fix

Taras Machyshyn9fb8a5d981a5
diff --git a/tests/integration/Espo/Core/Utils/Database/Base.php b/tests/integration/Espo/Core/Utils/Database/Base.php
index cbb96c54c2..0e67f9b75f 100644
--- a/tests/integration/Espo/Core/Utils/Database/Base.php
+++ b/tests/integration/Espo/Core/Utils/Database/Base.php
@@ -66,7 +66,7 @@ abstract class Base extends BaseTestCase
return $sth->fetch(\PDO::FETCH_ASSOC);
}
- protected function updateDefs($entityName, $fieldName, array $fieldDefs = [], array $linkDefs = null)
+ protected function updateDefs($entityName, $fieldName, array $fieldDefs = [], ?array $linkDefs = null)
{
$metadata = $this->getContainer()->getByClass(Metadata::class);