Skip to content

Commit

Permalink
change __CLASSNAME__ magic constant name for __CLASS__
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rubio committed Mar 4, 2016
1 parent a981274 commit c0ffd27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ephp_context.erl
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ run_method(RegInstance, #call{args=RawArgs}=Call,
ephp_vars:zip_args(Vars, NewVars, Args, MethodArgs),
ephp_const:set_bulk(Const, [
{<<"__FUNCTION__">>, MethodName},
{<<"__CLASSNAME__">>, Class#class.name}
{<<"__CLASS__">>, Class#class.name}
]),
Value = case ephp_interpr:run(SubContext, #eval{statements=Code}) of
{return, V} -> V;
Expand All @@ -721,7 +721,7 @@ run_method(RegInstance, #call{args=RawArgs}=Call,
ephp_vars:destroy(NewVars),
ephp_const:set_bulk(Const, [
{<<"__FUNCTION__">>, State#state.active_fun},
{<<"__CLASSNAME__">>, State#state.active_class}
{<<"__CLASS__">>, State#state.active_class}
]),
{Value, NState}.

Expand Down

0 comments on commit c0ffd27

Please sign in to comment.