Skip to content

Commit 7546273

Browse files
vassilmladenovfacebook-github-bot
authored andcommitted
Change __DynamicallyReferenced notice string
Reviewed By: jtwarren Differential Revision: D71152713 fbshipit-source-id: 34dd7455d38fcd950e39a2886938dced87372e10
1 parent e718944 commit 7546273

5 files changed

+7
-6
lines changed

hphp/runtime/base/strings.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ constexpr char MUST_BE_VALUE_TYPE[] = "Property %s of class %s is readonly, and
138138
constexpr char MUST_BE_ENCLOSED_IN_READONLY[] =
139139
"Property %s of class %s is readonly, but isn't enclosed in a readonly expression.";
140140
constexpr char MISSING_DYNAMICALLY_REFERENCED[] =
141-
"Missing __DynamicallyReferenced attribute on class %s for classname_to_class";
141+
"Class %s was loaded from a string, but it is missing the "
142+
"__DynamicallyReferenced attribute";
142143
constexpr char CLASSNAME_TO_CLASS_NOEXIST_EXCEPTION[] =
143144
"Failed to load class from %s %s for classname_to_class.";
144145
constexpr char REFLECTION_MISS_CONSTANTS_FROM_INCLUDED_ENUMS[] =
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class(C)
22

3-
Notice: Missing __DynamicallyReferenced attribute on class D for classname_to_class in %s/class-ptr/classname-to-class-launder.php on line 16
3+
Notice: Class D was loaded from a string, but it is missing the __DynamicallyReferenced attribute in %s/class-ptr/classname-to-class-launder.php on line 16
44
class(D)
55
lazyclass(C)
66
class(C)
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class(C)
22

3-
Notice: Missing __DynamicallyReferenced attribute on class D for classname_to_class in %s/class-ptr/classname-to-class.php on line 13
3+
Notice: Class D was loaded from a string, but it is missing the __DynamicallyReferenced attribute in %s/class-ptr/classname-to-class.php on line 13
44
class(D)
55
lazyclass(C)
66
class(C)
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
Notice: Missing __DynamicallyReferenced attribute on class C for classname_to_class in %s/class-ptr/emit-checktype-case.php on line 9
2+
Notice: Class C was loaded from a string, but it is missing the __DynamicallyReferenced attribute in %s/class-ptr/emit-checktype-case.php on line 9
33
hello
44
bye
55

6-
Notice: Missing __DynamicallyReferenced attribute on class C for classname_to_class in %s/class-ptr/emit-checktype-case.php on line 13
6+
Notice: Class C was loaded from a string, but it is missing the __DynamicallyReferenced attribute in %s/class-ptr/emit-checktype-case.php on line 13
77
bye
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Notice: Missing __DynamicallyReferenced attribute on class C for classname_to_class in %s/class-ptr/readonly.php on line 4
2+
Notice: Class C was loaded from a string, but it is missing the __DynamicallyReferenced attribute in %s/class-ptr/readonly.php on line 4
33

44
Notice: Class passed to classname type-hint in %s/class-ptr/readonly.php on line 16
55
Done

0 commit comments

Comments
 (0)