chillerlan / php-qrcode

A PHP QR Code generator and reader with a user-friendly API.
https://smiley.codes/qrcode/
Apache License 2.0
2.01k stars 302 forks source link

Upgrading from 3.4.0 to 3.4.1 breaks PHP 7.3 #83

Closed roberthenniger closed 3 years ago

roberthenniger commented 3 years ago

Seems that the library upgrades internally to the php-settings-container v2.1.2 and this is not compatible with PHP 7.3. Getting an exception with the following content:

syntax error, unexpected 'SettingsContainerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

I would have prefered if the version number would have gone up to 3.5.0 or even 4.0 since some of the loaded libs are clearly not compatible anymore. Wa snow downgrading on our environment.

codemasher commented 3 years ago

Wait, this shouldn't be. I think i know what the problem is. I accidentally tagged the main branch?? I'm gonna fix this right now! (the 3.x branch works perfectly fine from PHP7.2 onwards)

codemasher commented 3 years ago

Done. The proper v3.4.1 should be available soon. Sorry for the inconvenience!

roberthenniger commented 3 years ago

Updating dependencies (including require-dev) Package operations: 0 installs, 2 updates, 0 removals

codemasher commented 3 years ago

This is weird. Do you have some locked dependencies by chance?

roberthenniger commented 3 years ago

No, no locked dependencies. It upgrades and downgrades just fine.

From: smiley @.> Date: Thursday, 9 September 2021 at 11:22 To: chillerlan/php-qrcode @.> Cc: Robert Henniger @.>, Author @.> Subject: Re: [chillerlan/php-qrcode] Upgrading from 3.4.0 to 3.4.1 breaks PHP 7.3 (#83)

This is weird. Do you have some locked dependencies by chance?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/chillerlan/php-qrcode/issues/83#issuecomment-915915442, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABMPRWQJZL3OKW7FLYYHTVLUBB4GXANCNFSM5DWSJEVA.

codemasher commented 3 years ago

Can you please try to fetch from the latest commit directly and see if this works? composer require chillerlan/php-qrcode:v3.2.x-dev#468603b687a5fe75c1ff33857a45f1726c7b95a9