Skip to content

v1.2.1

Latest

Choose a tag to compare

@matasarei matasarei released this 21 Oct 19:10
d5be12b

Silences PHP 8.4's deprecation notices. Nine parameters were declared implicitly nullable
(Type $x = null), which PHP 8.4 deprecates. Loading the affected classes emitted a notice for each,
and an application running with E_ALL printed them on every request or CLI run that touched the
client.

Fixed

No deprecation notices on PHP 8.4+ (#11).
These parameters are now declared ?Type $x = null:

  • AdvertBuilder::addLocation(): $districtId, $latitude, $longitude
  • AdvertBuilder::addPrice(): $currency
  • ApiResource::request(): $endpoint
  • Threads::reply(): $attachments
  • OlxException::__construct(): $previous
  • Client::generateToken(): $accessCode, $redirectUrl

Upgrading

No code changes required. ?Type $x = null means exactly what Type $x = null did, on every
supported PHP (>=7.4), so signatures and subclasses are unaffected.

Full changelog: 1.2.0...1.2.1