Skip to content

Commit 44bc3cd

Browse files
committed
Update NAN reference in php parser
Confirmed via this helpful report that we're mis-referencing php's nan. stderr gets flooded with notices. With this change, the notices go away and everything seems to work. #186 (comment)
1 parent 4097a3e commit 44bc3cd

File tree

1 file changed

+1
-1
lines changed
  • vendor/php-parser/lib/PhpParser/Serializer

1 file changed

+1
-1
lines changed

vendor/php-parser/lib/PhpParser/Serializer/JSON.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function _serialize($node) {
3131
foreach ($node as $name => $subNode) {
3232
if (INF === $subNode) {
3333
$doc[$name] = "_PHP:CONST:INF";
34-
} elseif (NaN === $subNode) {
34+
} elseif (NAN === $subNode) {
3535
$doc[$name] = "_PHP:CONST:NaN";
3636
} elseif (is_string($subNode)) {
3737
$doc[$name] = utf8_encode($subNode);

0 commit comments

Comments
 (0)