Skip to content

Commit

Permalink
PackageTest // remove nullable return and added typecast to ensure a …
Browse files Browse the repository at this point in the history
…string value as return.
  • Loading branch information
Chrico committed Jan 24, 2025
1 parent f5153c1 commit 3e52f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/PackageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,9 @@ public function __construct(\ArrayObject $object)
$this->object = $object;
}

public function works(): string|null
public function works(): string
{
return $this->object->offsetGet('works?');
return (string) $this->object->offsetGet('works?');
}
};
},
Expand Down

0 comments on commit 3e52f99

Please sign in to comment.