googleapis / googleapis/google-api-php-client-services

\Google\Service\Calendar\Event::getDescription() returns NULL instead of ""

Open
#2,682 3 comments 1 reaction 1 assignee Claimed by @bshaffer View on GitHub
type: question
Dominant language
PHP
Stars
1.3k
Forks
320
Avg merge
2h 32m
Merged PRs (30d)
193

Description

#### Environment details

- OS: Linux
- PHP version: 8.1.17
- Package name and version: google/apiclient:2.13.2

#### Steps to reproduce

1. Get any event from calendar api that has an empty description

#### Code example

```php
/** @var \Google_Service_Calendar_Event $event */
var_dump($event->getDescription() === null);
```

https://github.com/googleapis/google-api-php-client-services/blob/bf6dd4985eb448d19b7ce2a4833264bacf139da9/src/Calendar/Event.php#L50

https://github.com/googleapis/google-api-php-client-services/blob/bf6dd4985eb448d19b7ce2a4833264bacf139da9/src/Calendar/Event.php#L280

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.