Homec4science

Handle static scalar in xhp attribute default value context

Authored by pad on May 5 2011, 22:45.

Description

Handle static scalar in xhp attribute default value context

Test Plan:
cat test.php | ./xhpast
where test.php is:

<?php

class Foo {
  const CST = 1;
}

class :x:foo {
  attribute
    int padding = Foo::CST,
    ;
}

Reviewed By: epriestley
Reviewers: epriestley, marcel
CC: aran, pad, epriestley
Revert Plan:
Tags:

  • begin *PUBLIC* platform impact section -

Bugzilla: #

  • end platform impact -

Differential Revision: 232

Details

Committed
padMay 5 2011, 23:37
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUbb71c6c1f4fb: libphutil: Improve system command / future documentation
Branches
Unknown
Tags
Unknown