test fixes

This commit is contained in:
Dennis Eichhorn 2024-03-16 17:56:46 +00:00
parent 7b76d797b8
commit 5876d88901
2 changed files with 5 additions and 5 deletions

View File

@ -224,15 +224,15 @@ final class DeleteMapper extends DataMapperAbstract
/** /**
* Delete has many relations if the relation is handled in a relation table * Delete has many relations if the relation is handled in a relation table
* *
* @param string $member Property which contains the has many models * @param string $member Property which contains the has many models
* @param array $objIds Objects which are related to the parent object * @param null|array $objIds Objects which are related to the parent object
* @param mixed $objId Parent object id * @param mixed $objId Parent object id
* *
* @return void * @return void
* *
* @since 1.0.0 * @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) if ((empty($objIds) && $objIds !== null)
|| $this->mapper::HAS_MANY[$member]['table'] === $this->mapper::TABLE || $this->mapper::HAS_MANY[$member]['table'] === $this->mapper::TABLE

View File

@ -531,7 +531,7 @@ class Graph
*/ */
private function pathBetweenNodesDfs( private function pathBetweenNodesDfs(
Node $node1, Node $node1,
?Node $node2 = null, Node $node2,
array &$visited, array &$visited,
array &$path, array &$path,
array &$paths array &$paths