Skip to content

Commit fc8f655

Browse files
committed
Simplify condition
1 parent dfadbb0 commit fc8f655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mvc/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ public function serialize(): string
10151015
* @param string $connectionService
10161016
* @return $this
10171017
*/
1018-
public function setConnectionService($connectionService): self
1018+
public function setConnectionService(string $connectionService): self
10191019
{
10201020
$this->collectionsManager->setConnectionService($this, $connectionService);
10211021

@@ -1182,7 +1182,7 @@ public static function getTypeMap($base = null): array
11821182
];
11831183

11841184
/** @noinspection NotOptimalIfConditionsInspection */
1185-
if (class_exists($base) && is_array($base::$typeMap)) {
1185+
if (class_exists($base)) {
11861186
$typeMap = array_merge($typeMap, $base::$typeMap);
11871187
}
11881188

0 commit comments

Comments
 (0)