Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

PHP - default values for properties #77

Closed
pdesterlich opened this issue Nov 6, 2012 · 2 comments · Fixed by #93
Closed

PHP - default values for properties #77

pdesterlich opened this issue Nov 6, 2012 · 2 comments · Fixed by #93
Assignees
Labels

Comments

@pdesterlich
Copy link

I noticed that in PHP certain properties (for example osPatch / osBuild, or device) not always exists, thus generating a notice (Notice: Undefined property: stdClass::$osPatch) when accessing.

Simple test: create a php page to show all properties (as showed in php's README.md), then access the page via chrome and firefox (both latest version): osPatch / osBuild are available with chrome but not with firefox.

Wouldn't be better if all properties had a default value (blank, zero or false)?

@ghost ghost assigned dmolsen Nov 6, 2012
@dmolsen
Copy link
Collaborator

dmolsen commented Nov 7, 2012

Yeah. I'll get that fixed.

@Krinkle
Copy link
Contributor

Krinkle commented Nov 14, 2012

👍

PHP Notice:  Undefined property: stdClass::$device
PHP Notice:  Undefined property: stdClass::$deviceMajor
PHP Notice:  Undefined property: stdClass::$deviceMinor

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

Successfully merging a pull request may close this issue.

3 participants