spatie / schema-org

A fluent builder Schema.org types and ld+json generator
https://freek.dev/2016/12/package-fluently-generate-schema-org-markup/
MIT License
1.34k stars 135 forks source link

When using the code on PHP8.1, the following notices will show up: #183

Closed pguillard closed 1 year ago

pguillard commented 2 years ago

On spatie/schema-org:^3.4 Deprecated function : Return type of Spatie\SchemaOrg\BaseType::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice dans include() (/project/vendor/spatie/schema-org/src/BaseType.php ligne 12)

As I could not re-open issue #178 , lets try a new one.

g-brodiei commented 2 years ago

Seeing the same Deprecated notice on our website as well. Using PHP 8.1.6

g-brodiei commented 2 years ago

@pguillard Upgrading spatie/schema-org to 3.11 fixed our error message. Seems to be fixed on #174, please confirm.