File tree Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Expand file tree Collapse file tree 5 files changed +38
-3
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <files psalm-version =" 4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69" >
3+ <file src =" src/LaunchDarkly/LDClient.php" >
4+ <DeprecatedClass occurrences =" 7" >
5+ <code >LDContext|LDUser</code >
6+ <code >LDContext|LDUser</code >
7+ <code >LDContext|LDUser</code >
8+ <code >LDContext|LDUser</code >
9+ <code >LDContext|LDUser</code >
10+ <code >LDContext|LDUser</code >
11+ <code >LDContext|LDUser</code >
12+ </DeprecatedClass >
13+ </file >
14+ <file src =" src/LaunchDarkly/LDContext.php" >
15+ <DeprecatedClass occurrences =" 1" >
16+ <code >LDUser</code >
17+ </DeprecatedClass >
18+ </file >
19+ <file src =" src/LaunchDarkly/LDUserBuilder.php" >
20+ <DeprecatedClass occurrences =" 3" >
21+ <code >LDUser</code >
22+ <code >LDUser</code >
23+ </DeprecatedClass >
24+ </file >
25+ </files >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
2- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap =" vendor/autoload .php" colors =" true" beStrictAboutChangesToGlobalState =" true" beStrictAboutOutputDuringTests =" true" beStrictAboutResourceUsageDuringSmallTests =" true" beStrictAboutTestsThatDoNotTestAnything =" true" beStrictAboutTodoAnnotatedTests =" true" verbose =" true" defaultTimeLimit =" 10" >
3-
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap =" tests/bootstrap .php" colors =" true" beStrictAboutChangesToGlobalState =" true" beStrictAboutOutputDuringTests =" true" beStrictAboutResourceUsageDuringSmallTests =" true" beStrictAboutTestsThatDoNotTestAnything =" true" beStrictAboutTodoAnnotatedTests =" true" verbose =" true" defaultTimeLimit =" 10" >
3+
44 <logging >
55 <junit outputFile =" build/phpunit/junit.xml" />
66 </logging >
Original file line number Diff line number Diff line change 55 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
66 xmlns =" https://getpsalm.org/schema/config"
77 xsi : schemaLocation =" https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+ errorBaseline =" baseline.xml"
89>
910 <projectFiles >
1011 <directory name =" src" />
Original file line number Diff line number Diff line change 1818 * this may be a username or e-mail address. For anonymous users, it could be an IP address or session ID.
1919 *
2020 * Use {@see \LaunchDarkly\LDUserBuilder} to construct instances of this class.
21+ *
22+ * @deprecated Use LDContext instead.
2123 */
2224class LDUser
2325{
@@ -65,6 +67,8 @@ public function __construct(
6567 ?array $ custom = [],
6668 ?array $ privateAttributeNames = []
6769 ) {
70+ trigger_error ('LDUser is being removed in 6.0.0. Use LDContext instead ' , E_USER_DEPRECATED );
71+
6872 $ this ->_key = $ key ;
6973 $ this ->_ip = $ ip ;
7074 $ this ->_country = $ country ;
@@ -169,7 +173,7 @@ public function getPrivateAttributeNames(): ?array
169173 {
170174 return $ this ->_privateAttributeNames ;
171175 }
172-
176+
173177 public function isKeyBlank (): bool
174178 {
175179 return empty ($ this ->_key );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ error_reporting (E_ALL & ~E_USER_DEPRECATED );
4+
5+ require 'vendor/autoload.php ' ;
You can’t perform that action at this time.
0 commit comments