Skip to content

PHP 8.5 support

PHP 8.5 support #1018

Triggered via pull request December 11, 2025 06:06
@vjikvjik
opened #282
php85
Status Success
Total duration 1m 39s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
mutation / PHP 8.5-ubuntu-latest: src/SimpleItemsStorage.php#L173
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ } $children = $this->getDirectChildren($parentName); if (empty($children)) { - return false; + } foreach ($children as $groupChild) { if ($this->hasChild($groupChild->getName(), $childName)) {
mutation / PHP 8.5-ubuntu-latest: src/SimpleAssignmentsStorage.php#L78
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ { $assignments = $this->getByUserId($userId); if (empty($assignments)) { - return []; + } $userItemNames = []; foreach ($itemNames as $itemName) {
mutation / PHP 8.5-ubuntu-latest: src/SimpleAssignmentsStorage.php#L62
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ { $assignments = $this->getByUserId($userId); if (empty($assignments)) { - return false; + } foreach ($itemNames as $itemName) { if (array_key_exists($itemName, $assignments)) {
mutation / PHP 8.5-ubuntu-latest: src/Manager.php#L244
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ $userId = (string) $userId; $assignments = $this->assignmentsStorage->getByUserId($userId); if (empty($assignments)) { - return []; + } $assignmentNames = array_keys($assignments); return array_merge($this->itemsStorage->getPermissionsByNames($assignmentNames), $this->itemsStorage->getAllChildPermissions($assignmentNames));
mutation / PHP 8.5-ubuntu-latest: src/Manager.php#L176
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ throw new InvalidArgumentException('Assigning permissions directly is disabled. Prefer assigning roles only.'); } if ($this->assignmentsStorage->exists($itemName, $userId)) { - return $this; + } $assignment = new Assignment($userId, $itemName, $createdAt ?? $this->getCurrentTimestamp()); $this->assignmentsStorage->add($assignment);
mutation / PHP 8.5-ubuntu-latest: src/Manager.php#L72
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ } else { $guestRole = $this->getGuestRole(); if ($guestRole === null) { - return false; + } } $hierarchy = $this->itemsStorage->getHierarchy($item->getName());