Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\Didww\Item\Did::getDescription() is able to return null #55

Closed
NHSCHIFFL opened this issue Jan 5, 2023 · 2 comments
Closed

\Didww\Item\Did::getDescription() is able to return null #55

NHSCHIFFL opened this issue Jan 5, 2023 · 2 comments

Comments

@NHSCHIFFL
Copy link

NHSCHIFFL commented Jan 5, 2023

We have encountered an error, where the actual return value of \Didww\Item\Did::getDescription() was null, while it is being declared as non-nullable 'string'.

// ...
Configuration::configure( new Credentials($apiKey, 'production') );
$dids = Did::all();
$didwwDids = $dids->getData();
foreach( $didwwDids as $didwwDid) {
    $description = $didwwDid->getDescription(); // <= ERROR HAPPENS HERE
// ...
}
gigorok added a commit that referenced this issue Feb 13, 2023
gigorok added a commit that referenced this issue Feb 13, 2023
gigorok added a commit that referenced this issue Feb 13, 2023
gigorok added a commit that referenced this issue Feb 13, 2023
gigorok added a commit that referenced this issue Feb 14, 2023
gigorok added a commit that referenced this issue Feb 14, 2023
gigorok added a commit that referenced this issue Feb 14, 2023
gigorok added a commit that referenced this issue Feb 16, 2023
gigorok added a commit that referenced this issue Feb 17, 2023
gigorok added a commit that referenced this issue Feb 17, 2023
gigorok added a commit that referenced this issue Feb 17, 2023
gigorok added a commit that referenced this issue Feb 17, 2023
@gigorok
Copy link
Member

gigorok commented Feb 17, 2023

@NHSCHIFFL thanks. try the latest v6.1.0 version

@NHSCHIFFL
Copy link
Author

Thanks. Our current workaround can be removed now and it looks more readable, too. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants