dcarbone / php-fhir

Tools for consuming data from a FHIR server with PHP
Apache License 2.0
129 stars 40 forks source link

[Note] Fields with default value of NULL #51

Closed shehi closed 5 years ago

shehi commented 5 years ago

Hey @dcarbone ! First I wanted to thank for your quick support regarding #49 and #50 !

With this ticket I want to note that in PHP, you don't need to initiate class properties with NULL value, as it is already done by default when you declare those properties. So something like this is unnecessary:

public $fieldName = null;

Declaring already initializes them to a null value:

public $fieldName;

Thanks!

dcarbone commented 5 years ago

@shehi i'm aware of this, but I prefer things to be explicitly defined. Unless there is a reason not to do so, I am going to close this issue.