unsplash / unsplash-php

👻 Official PHP wrapper for the Unsplash API
MIT License
409 stars 71 forks source link

When will a PHP 8.1 release be made? #131

Open HughDuggan opened 2 years ago

HughDuggan commented 2 years ago

Hi,

I note that there is already a fix for a PHP 8.1 incompatibility and it was merged to 'master' in April 2022 [https://github.com/unsplash/unsplash-php/commit/ae77fb8f9c5845579883853b5b7ad08a8654abf1]. But the last general release (3.2.1) was in January 2022.

Are there any timescales for a new release (3.2.2?) which will include this fix and will therefore work better on PHP 8.1?

Robertkeli commented 2 years ago

Asking the same question as well, trying to use the package with PHP 8.1 is proving to be problematic due to the incessant deprecation warnings.

daledavies commented 1 year ago

I hit this problem too, but for now using something like the foloowing in composer.json seems to work fine...


    "repositories": [
        {
          "type": "git",
          "url": "https://github.com/unsplash/unsplash-php.git"
        }
    ],
    "require": {
        "unsplash/unsplash": "dev-master#429ad0daa4f498b9ed42fe4f0053a44fb47645b7",
    }
danlafreniere commented 1 year ago

I hit this problem too, but for now using something like the foloowing in composer.json seems to work fine...

    "repositories": [
        {
          "type": "git",
          "url": "https://github.com/unsplash/unsplash-php.git"
        }
    ],
    "require": {
        "unsplash/unsplash": "dev-master#429ad0daa4f498b9ed42fe4f0053a44fb47645b7",
    }

This worked for me as well; thanks kindly!

daledavies commented 1 year ago

I hit this problem too, but for now using something like the foloowing in composer.json seems to work fine...

    "repositories": [
        {
          "type": "git",
          "url": "https://github.com/unsplash/unsplash-php.git"
        }
    ],
    "require": {
        "unsplash/unsplash": "dev-master#429ad0daa4f498b9ed42fe4f0053a44fb47645b7",
    }

This worked for me as well; thanks kindly!

You're welcome, glad I could help 😀