Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Fix parsing nullable types with php 7.1 #269

Closed
wants to merge 3 commits into from

Conversation

derFunk
Copy link
Contributor

@derFunk derFunk commented Jan 31, 2017

See also https://github.com/FriendsOfPHP/Sami/issues/264.

This fixes the exception which was preventing document generation.
The resulting docs which state e.g. null|string for a nullable ?string.

}

if ($typeStr != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably be !==

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@jakesylvestre
Copy link

Any timeline on this being merged?

@fabpot
Copy link
Member

fabpot commented Mar 24, 2017

Thank you @derFunk.

@fabpot fabpot closed this in af1155c Mar 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants