helmutschneider / swish-php

PHP-wrapper for the Swish merchant api
MIT License
40 stars 19 forks source link

Php 8.1 and Guzzle 8 #21

Closed oakleaf closed 2 years ago

oakleaf commented 2 years ago

Hello, how far away are we from supporting Php 8.1 and Guzzle version more than 7?

dhedberg commented 2 years ago

I have tagged 3.0.1 with some updated dependencies, does that solve the issue you were seeing?

The new version will probably not be visible on packagist for a while since the auto-update is not enabled, so you might have to specifically point to this repository in your composer.json.

oakleaf commented 2 years ago

Great! Except the support for Php 8+

E.g: "require": { "php": "^7.2|^8.0"

Is that something you can add?

dhedberg commented 2 years ago

The library uses >= as the PHP version constraint, so it should already accept 8 and upwards. There were some other dependencies that blocked 8 (or was it 8.1?), but those are updated since version 3.0.1.

I did try composer install and running the tests with both PHP 8.0 and 8.1, and it all seemed to work fine.

What's the error you're seeing?

Edit: Forgot what I did.

oakleaf commented 2 years ago

Yes it seems to work! Great and many thanks! :)