Skip to content

Example code fails on 5.0.7 #487

@atti-dall-atto

Description

@atti-dall-atto

Forgive the naivete of the question, but...

running the builder example code on the front page with the front page release (5.0.7) on PHP 8.4.16, I see

php .\test-qr.php PHP Fatal error: Uncaught Error: Unknown named parameter $writer in [PATH REDACTED]test-qr.php:14 Stack trace: #0 {main} thrown in [PATH REDACTED]test-qr.php on line 14

I eventually see from the release notes for 6.0.0 that this is likely that the front page example does not work on PHP 8.4, yet the composer.json file for your 5.0.7 release has

"php": "^8.1",

which indicates that it DOES work with any version of PHP 8 newer than 8.1

Composer's semantic 'caret' versioning is inappropriate for PHP itself - which frequently breaks compatibility between non-major versions.
Just sayin'
https://getcomposer.org/doc/articles/versions.md#caret-version-range-

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions