amadeus4dev-examples / amadeus-php

PHP library for the Amadeus Self-Service APIs
https://amadeus4dev-examples.github.io/amadeus-php/
MIT License
12 stars 14 forks source link

remove redundant NULL type assignment to endpoint variables #73

Closed xianqiliu closed 2 years ago

xianqiliu commented 2 years ago

There are some must existing endpoint variables that will never be null, e.g.

private ?DirectDestinations $directDestinations;

/**
* @return DirectDestinations|null
*/
public function getDirectDestinations(): ?DirectDestinations
{
  return $this->directDestinations;
}

thus those redundant null type assignments on them should be removed.