File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ public function testCachingForOverriddenVariableNames()
116
116
$ this ->assertSame ('($a + $B) ' , $ result );
117
117
}
118
118
119
+ public function testStrictEquality ()
120
+ {
121
+ $ expressionLanguage = new ExpressionLanguage ();
122
+ $ expression = '123 === a ' ;
123
+ $ result = $ expressionLanguage ->compile ($ expression , array ('a ' ));
124
+ $ this ->assertSame ('(123 === $a) ' , $ result );
125
+ }
126
+
119
127
public function testCachingWithDifferentNamesOrder ()
120
128
{
121
129
$ cacheMock = $ this ->getMockBuilder ('Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface ' )->getMock ();
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ class Token
30
30
const PUNCTUATION_TYPE = 'punctuation ' ;
31
31
32
32
/**
33
- * @param string $type The type of the token (self::*_TYPE)
34
- * @param string $value The token value
35
- * @param int $cursor The cursor position in the source
33
+ * @param string $type The type of the token (self::*_TYPE)
34
+ * @param string|int|float|null $value The token value
35
+ * @param int $cursor The cursor position in the source
36
36
*/
37
37
public function __construct ($ type , $ value , $ cursor )
38
38
{
You can’t perform that action at this time.
0 commit comments