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

Commit

Permalink
Add catch-all for unknown attribtue types
Browse files Browse the repository at this point in the history
eg LEGACY_CALLABLE
not explicitly adding that to keep backwards compatibility
  • Loading branch information
fredemmott committed Jul 19, 2015
1 parent c4093e6 commit 09dc13b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/lib/xhp-explorer-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ protected function render(): XHPRoot {
<code style="white-space: pre">
{"enum {\n " . implode(",\n ", $values)."\n}"}
</code>;
break;
break;
default:
$value = '<unknown>';
$type = '<unknown>';
}

if (!$attr->hasDefaultValue()) {
Expand Down

0 comments on commit 09dc13b

Please sign in to comment.