com php-langspec: Fix precedence in instanceof-subject: spec/10-expressions.md spec/19-grammar.md
[email protected] (Nikita Popov) Tue, 19 Sep 2017 08:12:18 +0000
| Newsgroups | php.standards.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: c17f3a1eb766d1b09c4fd0d9a032312b1f8ee250=0AAuthor: Nikita Pop= ov <[email protected]> Tue, 19 Sep 2017 10:11:58 +0200=0AParents: 1ae= d868c28bcbbb0f1d011169163aab1e66413c9=0ABranches: master=0A=0ALink: = http://git.php.net/?p=3Dphp-langspec.git;a=3Dcommitdiff;h=3Dc17f3a1eb766d1b= 09c4fd0d9a032312b1f8ee250=0A=0ALog:=0AFix precedence in instanceof-subject= =0A=0AChanged paths:=0A M spec/10-expressions.md=0A M spec/19-grammar.m= d=0A=0A=0ADiff:=0Adiff --git a/spec/10-expressions.md b/spec/10-expressions= .md=0Aindex ed50d75..9cc864e 100644=0A--- a/spec/10-expressions.md=0A+++ b/= spec/10-expressions.md=0A@@ -2224,7 +2224,7 @@ instanceof-expression:=0A = instanceof-subject 'instanceof' class-type-designator=0A =0A instanceof-sub= ject:=0A- expression=0A+ unary-expression=0A -->=0A =0A <pre>=0A@@ -2233,= 17 +2233,17 @@ instanceof-subject:=0A <i><a href=3D"#grammar-instanceof-= subject">instanceof-subject</a></i> instanceof <i><a href=3D"#grammar-c= lass-type-designator">class-type-designator</a></i>=0A =0A <i id=3D"grammar= -instanceof-subject">instanceof-subject:</i>=0A- <i><a href=3D"#grammar-e= xpression">expression</a></i>=0A+ <i><a href=3D"#grammar-unary-expression= ">unary-expression</a></i>=0A </pre>=0A =0A **Constraints**=0A =0A-The *exp= ression* in *instanceof-subject* must not be any form of literal.=0A+The *u= nary-expression* in *instanceof-subject* must not be any form of literal.= =0A =0A **Semantics**=0A =0A Operator `instanceof` returns `TRUE` if the va= lue designated by=0A-*expression* in *instanceof-subject* is an object havi= ng the type specified=0A+*unary-expression* in *instanceof-subject* is an o= bject having the type specified=0A by *class-type-designator*, is an object= whose type is derived from that type,=0A or is an object whose type implem= ents the interface specified by *class-type-designator*.=0A Otherwise, it r= eturns `FALSE`.=0Adiff --git a/spec/19-grammar.md b/spec/19-grammar.md=0Ain= dex 2162fbf..4dfd354 100644=0A--- a/spec/19-grammar.md=0A+++ b/spec/19-gram= mar.md=0A@@ -600,7 +600,7 @@ The grammar notation is described in [Grammars= section](09-lexical-structure.md#=0A <i><a href=3D"#grammar-instanceof-= subject">instanceof-subject</a></i> instanceof <i><a href=3D"#grammar-c= lass-type-designator">class-type-designator</a></i>=0A =0A <i id=3D"grammar= -instanceof-subject">instanceof-subject:</i>=0A- <i><a href=3D"#grammar-e= xpression">expression</a></i>=0A+ <i><a href=3D"#grammar-unary-expression= ">unary-expression</a></i>=0A =0A <i id=3D"grammar-logical-NOT-expression">= logical-NOT-expression:</i>=0A <i><a href=3D"#grammar-instanceof-express= ion">instanceof-expression</a></i>=0A