blob: ad83ee717d9cbfd409d4e3cf8bbd10ad1a58d94c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
Test possible constant naming regression on procedural scope
--FILE--
<?php
class Obj
{
const return = 'yep';
}
const return = 'nope';
--EXPECTF--
Parse error: syntax error, unexpected 'return' (T_RETURN), expecting identifier (T_STRING) in %s on line 8
|