From 5876d8890186484f48adb282c8e33dee57917789 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 16 Mar 2024 17:56:46 +0000 Subject: [PATCH] test fixes --- DataStorage/Database/Mapper/DeleteMapper.php | 8 ++++---- Stdlib/Graph/Graph.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DataStorage/Database/Mapper/DeleteMapper.php b/DataStorage/Database/Mapper/DeleteMapper.php index 992deaaf5..c27086171 100755 --- a/DataStorage/Database/Mapper/DeleteMapper.php +++ b/DataStorage/Database/Mapper/DeleteMapper.php @@ -224,15 +224,15 @@ final class DeleteMapper extends DataMapperAbstract /** * Delete has many relations if the relation is handled in a relation table * - * @param string $member Property which contains the has many models - * @param array $objIds Objects which are related to the parent object - * @param mixed $objId Parent object id + * @param string $member Property which contains the has many models + * @param null|array $objIds Objects which are related to the parent object + * @param mixed $objId Parent object id * * @return void * * @since 1.0.0 */ - public function deleteRelationTable(string $member, ?array $objIds = null, mixed $objId) : void + public function deleteRelationTable(string $member, ?array $objIds, mixed $objId) : void { if ((empty($objIds) && $objIds !== null) || $this->mapper::HAS_MANY[$member]['table'] === $this->mapper::TABLE diff --git a/Stdlib/Graph/Graph.php b/Stdlib/Graph/Graph.php index 8cdf8265e..9fdc3df47 100755 --- a/Stdlib/Graph/Graph.php +++ b/Stdlib/Graph/Graph.php @@ -531,7 +531,7 @@ class Graph */ private function pathBetweenNodesDfs( Node $node1, - ?Node $node2 = null, + Node $node2, array &$visited, array &$path, array &$paths