Searched refs:const (Results 26 – 50 of 481) sorted by relevance
12345678910>>...20
2 defining const with same name as imported should fail7 use const foo\bar;9 const bar = 42;14 Fatal error: Cannot declare const bar because the name is already in use in %s on line %d
2 using const with same name as defined should fail7 const bar = 42;9 use const foo\bar;18 Fatal error: Cannot use const foo\bar as bar because the name is already in use in %s on line %d
2 importing const with same name but different case7 use const foo\bar;8 use const foo\BAR;
2 Allow self and parent in use const statement7 use const self as foo;8 use const parent as bar;
2 use and use const with the same alias7 const foo = 'foo';12 use const foo as bar;
9 const BOOLEAN_CONSTANT = true;10 const NULL_CONSTANT = null;11 const STRING_CONSTANT = 'This is a string';12 const INTEGER_CONSTANT = 1000;13 const FLOAT_CONSTANT = 3.14159265;
7 const A = 1;8 const B = self::A;16 const A = 1;17 const B = self::A;
7 const cons = 10;8 const cons1 = "";9 const cons2 = "test";19 var_dump($foo->getConstant("no such const"));
7 const BAR = 42;11 use const Foo\BAR;12 const BAR = 24;16 Fatal error: Cannot declare const Bazzle\BAR because the name is already in use in %s on line %d
7 const c = 'Sea';8 const y = 2;15 const x = 1;16 const c = 'Ocean';
8 /** const comment */9 const C = 0;19 /** const comment */20 const C = 0;
7 const AAA = 'x';8 const BBB = 'a';9 const CCC = 'a';10 const DDD = self::AAA;
6 const FOO_CONST = "Foo const\n";18 const FOO_CONST,28 Foo const
8 const C = "const ok\n";37 const ok38 const ok39 const ok
12 const X = 'X' . self::Y;13 const Y = 'Y';16 const X2 = 'X2' . self::Y2;17 const Y2 = 'Y2';25 const C = 1 % 1.5;
5 class TEST { const FOO = SEEK_CUR; };6 class TEST2 { const FOO = 1; };7 class TEST3 { const FOO = PHP_VERSION; };
10 const A_name = A::Case->name;11 const A_value = A::Case->value;16 const A_name_nullsafe = A::Case?->name;17 const A_value_nullsafe = A::Case?->value;
11 const A_name = A::Case->name;12 const A_value = A::Case->value;13 const A_name_nullsafe = A::Case?->name;14 const A_value_nullsafe = A::Case?->value;
76 typedef const void* type47;80 typedef const volatile void* type51;94 typedef const void * const volatile * const type56;98 typedef char type58[const];99 typedef char type59[const volatile];101 typedef char type61[const 10];106 typedef char type66[const volatile];118 static void f11(const char *name);119 static void f12(const char *);120 static void f13(const int a[5]);[all …]
8 const C = 1;13 const C = 2;18 const C = 3;
7 public const FOO = [0, ...self::ARR, 4];8 public const ARR = [1, 2, 3];13 public const A = [...self::B];14 public const B = [...self::A];
7 public const A = 42;11 public const A = 42;16 public const A = 42;32 public const A = 42;
Completed in 25 milliseconds