Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

PHP 8 Compatibility? #164

@GenericHero01

Description

@GenericHero01

Howdy!

This looks like a great package for an upcoming project, however, I ran into some compatibility/deprecation issues when attempting a RateQuote.

ErrorException Method ReflectionParameter::getClass() is deprecated

Line 72 of AbstracComplexType.php is the culprit, though that's also used later down the file:

$parameterClass = $reflectionClass->getMethod($setterMethodName)->getParameters()[0]->getClass();

I can suppress error messages on my end and get it working, however, that doesn't feel great. Are there any plans to refactor for PHP 8 support? I'm poking at it on my end as well, though I'll be the first to admit I'm a relative PHP newbie.

Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions