Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ISO4217Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ private static function getCurrencies(string $indexedBy): array
{
$reflected = new \ReflectionClass('Alcohol\ISO4217');
$currencies = $reflected->getProperty('currencies');
$currencies->setAccessible(true);
if (PHP_VERSION_ID < 80100) {
$currencies->setAccessible(true);
}
$currencies = $currencies->getValue(new ISO4217());

return array_reduce(
Expand Down