]> granicus.if.org Git - php/commitdiff
Use mnemonic names
authorDmitry Stogov <dmitry@zend.com>
Tue, 11 Sep 2018 11:54:11 +0000 (14:54 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 11 Sep 2018 11:54:11 +0000 (14:54 +0300)
ext/reflection/tests/ReflectionClass_getMethods_003.phpt
ext/reflection/tests/ReflectionClass_getProperties_003.phpt

index 885bd908f1a9801dea912c6cb89800219b11774d..b08fcaa4d49f2224dca34c569c2451a62b8bf588 100644 (file)
@@ -17,9 +17,9 @@ class C {
 }
 
 $rc = new ReflectionClass("C");
-$StaticFlag = 0x01;
-$pubFlag =  0x100;
-$privFlag = 0x400;
+$StaticFlag = ReflectionMethod::IS_STATIC;
+$pubFlag = ReflectionMethod::IS_PUBLIC;
+$privFlag = ReflectionMethod::IS_PRIVATE;
 
 echo "No methods:";
 var_dump($rc->getMethods(0));
index ac16a68349efa1b8946d87f00a46cc99efae5f85..229e82805659ef37ca7e82f904b5158a5e911cb7 100644 (file)
@@ -17,9 +17,9 @@ class C {
 }
 
 $rc = new ReflectionClass("C");
-$StaticFlag = 0x01;
-$pubFlag =  0x100;
-$privFlag = 0x400;
+$StaticFlag = ReflectionProperty::IS_STATIC;
+$pubFlag =  ReflectionProperty::IS_PUBLIC;
+$privFlag = ReflectionProperty::IS_PRIVATE;
 
 echo "No properties:";
 var_dump($rc->getProperties(0));