Skip to content

Commit ea665b4

Browse files
author
LaunchDarklyReleaseBot
committed
Releasing version 4.0.0
1 parent 6717972 commit ea665b4

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
All notable changes to the LaunchDarkly PHP SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [4.0.0] - 2021-08-06
6+
This major version release is for updating PHP compatibility, simplifying the SDK's dependencies, and removing deprecated names.
7+
8+
Except for the dependency changes described below which may require minor changes in your build, usage of the SDK has not changed in this release. For more details about changes that may be necessary, see the [3.x to 4.0 migration guide](https://docs.launchdarkly.com/sdk/server-side/php/migration-3-to-4).
9+
10+
Dropping support for obsolete PHP versions makes it easier to maintain the SDK and keep its dependencies up to date. See LaunchDarkly's [End of Life Policy](https://launchdarkly.com/policies/end-of-life-policy/) regarding platform version support.
11+
12+
Simplifying dependencies by moving optional integration features into separate packages reduces the size of the SDK bundle, as well as reducing potential compatibility problems and vulnerabilities.
13+
14+
### Added:
15+
- Added type declarations to all methods. These could result in a `TypeError` at runtime if you have been passing values of the wrong types to SDK methods (including passing a `null` value for a parameter that should not be null)-- although in most cases, this would have caused an error anyway at some point in the SDK code, just not such a clearly identifiable error. To detect type mistakes before runtime, you can use a static analysis tool such as [Psalm](https://psalm.dev/).
16+
17+
### Changed:
18+
- The minimum PHP version is now 7.3.
19+
- Updated many dependencies to newer versions and/or more actively maintained packages.
20+
21+
### Removed:
22+
- Removed the bundled Redis, DynamoDB, and Consul integrations. These are now provided as separate packages; see [php-server-sdk-redis-predis](https://github.com/launchdarkly/php-server-sdk-redis-predis), [php-server-sdk-redis-phpredis](https://github.com/launchdarkly/php-server-sdk-redis-phpredis), [php-server-sdk-dynamodb](https://github.com/launchdarkly/php-server-sdk-dynamodb), and [php-server-sdk-consul](https://github.com/launchdarkly/php-server-sdk-consul).
23+
- Removed all types and methods that were deprecated in the last 3.x version.
24+
- Removed implementation types from the `LaunchDarkly` namespace that were annotated as `@internal` and not documented, such as types that are part of the internal feature data model. These are not meant for use by application code, and are always subject to change. They have been moved into `LaunchDarklyImpl`.
25+
26+
527
## [3.9.1] - 2021-08-02
628
### Fixed:
729
- The `phpredis` integration was ignoring the `phpredis_client` option for passing in a preconfigured Redis client. (Thanks, [CameronHall](https://github.com/launchdarkly/php-server-sdk/pull/151)!)

src/LaunchDarkly/LDClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LDClient
2525
* The current SDK version.
2626
* @var string
2727
*/
28-
const VERSION = '3.9.1';
28+
const VERSION = '4.0.0';
2929

3030
/** @var string */
3131
protected $_sdkKey;

0 commit comments

Comments
 (0)