1Error conditions for flexible doc strings 2----- 3<?php 4 5<<<A 6 @@{ "\t" }@@A; 7 8<<<A 9 FooBar 10 @@{ "\t" }@@A; 11 12echo <<<END 13@@{ "\t" }@@ X 14@@{ "\t\t" }@@END; 15 16echo <<<END 17 a 18 b 19 c 20 END; 21 22<<<END 23\ta 24@@{ "\t" }@@END; 25 26<<<TEST 27 Foo 28$var 29 TEST; 30 31<<<TEST 32$var 33 TEST; 34 35echo <<<END 36 a 37$a 38 END; 39----- 40Invalid indentation - tabs and spaces cannot be mixed from 4:1 to 4:3 41Invalid indentation - tabs and spaces cannot be mixed from 8:1 to 8:3 42Invalid indentation - tabs and spaces cannot be mixed from 10:6 to 12:5 43Invalid body indentation level (expecting an indentation level of at least 5) from 14:6 to 18:8 44Invalid body indentation level (expecting an indentation level of at least 1) from 20:1 to 22:4 45Invalid body indentation level (expecting an indentation level of at least 2) from 25:1 to 26:0 46Invalid body indentation level (expecting an indentation level of at least 1) from 30:1 to 30:4 47Invalid body indentation level (expecting an indentation level of at least 1) from 34:1 to 35:0 48array( 49 0: Stmt_Expression( 50 expr: Scalar_String( 51 value: 52 ) 53 ) 54 1: Stmt_Expression( 55 expr: Scalar_String( 56 value: FooBar 57 ) 58 ) 59 2: Stmt_Echo( 60 exprs: array( 61 0: Scalar_String( 62 value: X 63 ) 64 ) 65 ) 66 3: Stmt_Echo( 67 exprs: array( 68 0: Scalar_String( 69 value: a 70 b 71 c 72 ) 73 ) 74 ) 75 4: Stmt_Expression( 76 expr: Scalar_String( 77 value: a 78 ) 79 ) 80 5: Stmt_Expression( 81 expr: Scalar_InterpolatedString( 82 parts: array( 83 0: InterpolatedStringPart( 84 value: Foo 85 86 ) 87 1: Expr_Variable( 88 name: var 89 ) 90 ) 91 ) 92 ) 93 6: Stmt_Expression( 94 expr: Scalar_InterpolatedString( 95 parts: array( 96 0: Expr_Variable( 97 name: var 98 ) 99 ) 100 ) 101 ) 102 7: Stmt_Echo( 103 exprs: array( 104 0: Scalar_InterpolatedString( 105 parts: array( 106 0: InterpolatedStringPart( 107 value: a 108 109 ) 110 1: Expr_Variable( 111 name: a 112 ) 113 ) 114 ) 115 ) 116 ) 117) 118