Permalink
Browse files

Allow __construct to parse after :: in a trait use expression

Reviewed By: jamesjwu

Differential Revision: D7621931

fbshipit-source-id: 84c7977d048fa3ac953008eb86a733d465b3fb8c
  • Loading branch information...
vassilmladenov authored and hhvm-bot committed Apr 13, 2018
1 parent 8fdf57a commit 78e4642bcbae02302d96484b096dbc96ef503b79
Showing with 6 additions and 6 deletions.
  1. +1 −1 hphp/hack/src/parser/full_fidelity_declaration_parser.ml
  2. +5 −5 hphp/test/hackc_failing_tests_zend
@@ -1062,7 +1062,7 @@ module WithExpressionAndStatementAndTypeParser
if (peek_token_kind parser) = ColonColon then
(* scope resolution expression case *)
let (parser, cc_token) = require_coloncolon parser in
let (parser, name) = require_name parser in
let (parser, name) = require_token_one_of parser [Name; Construct] SyntaxError.error1004 in
Make.scope_resolution_expression parser qualifier cc_token name
else
(* plain qualified name case *)
@@ -1,5 +1,5 @@
zend/good/Zend/tests/bug62907.php
zend/good/Zend/tests/bug63305.php
zend/good/Zend/tests/use_function/no_global_fallback2.php
zend/good/ext/pcntl/tests/pcntl_wait.php
zend/good/ext/standard/tests/serialize/006.php
zend/good/Zend/tests/heredoc_013.php
zend/good/ext/reflection/tests/ReflectionClass_getDocComment_001.php
zend/good/ext/reflection/tests/ReflectionFunction_getDocComment.001.php
zend/good/ext/reflection/tests/ReflectionMethod_getDocComment_basic.php
zend/good/ext/reflection/tests/ReflectionProperty_getDocComment_basic.php

0 comments on commit 78e4642

Please sign in to comment.