-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add VSCode devenv configuration * Run tests on PHP 8.3 * Update config JSON model to v6 + fix inconsistent error 1000 reporting + improve config json deserialization error reporting * Refactor evaluator and evaluation logging to prepare it for the new features * Implement new comparison operators * Implement segment condition evaluation * Implement prerequisite flag condition evaluation * Implement SDK key format validation + fix broken tests * Rename EvaluationDetails.getMatched* properties * Improve message of error 1103 * Add matrix tests * Align config json error handling of EvaluateLogBuilder with error reporting of RolloutEvaluator * Add exception to the log format in DefaultLogger * Add tests for evaluation logging + minor fixes * Add User Object tests * Add tests for sdk key format validation * Add user attribute conversion tests + re-implement Utils.numberToString as NumberFormatter requires a PHP extension * Add comparison attribute and comparison value trimming tests * Add special character tests * Add tests for EvaluationDetails.getMatchedTargetingRule/getMatchedPercentageOption properties * Add flag overrides vs. prerequisite flags, config json salt and segments tests + add related exception object to EvaluationDetails * Add override value type mismatch tests * Bump version * Update package version in samples --------- Co-authored-by: Peter Adam Korodi <[email protected]>
- Loading branch information
Showing
144 changed files
with
8,608 additions
and
1,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
// For intellisense and navigation in code: | ||
"bmewburn.vscode-intelephense-client", | ||
|
||
// For formatting and linting: | ||
"junstyle.php-cs-fixer", | ||
"SanderRonde.phpstan-vscode", | ||
|
||
// For exploring and running tests: | ||
"hbenl.vscode-test-explorer", | ||
"recca0120.vscode-phpunit", | ||
|
||
// For debugging: | ||
"xdebug.php-debug" // to make this work, you need xdebug installed - see the description of the extension | ||
], | ||
|
||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
// To debug tests, you need to launch this configuration first, then run the test to debug from the test explorer. | ||
"name": "Listen for XDebug", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9003 | ||
}, | ||
{ | ||
"name": "Launch currently open script", | ||
"type": "php", | ||
"request": "launch", | ||
"program": "${file}", | ||
"cwd": "${fileDirname}", | ||
"port": 9003 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"intelephense.environment.phpVersion": "8.1.0", | ||
// On Linux, replace "phpdebug.bat" with "XDEBUG_MODE=debug php". | ||
// To make debugging work, you also need xdebug.start_with_request=yes in php.ini! | ||
"phpunit.php": "phpdebug.bat", | ||
"phpunit.args": [ | ||
"-c", | ||
"phpunit.xml" | ||
], | ||
"php-cs-fixer.executablePath": "php-cs-fixer", | ||
"php-cs-fixer.executablePathWindows": "${workspaceFolder}/vendor/bin/php-cs-fixer.bat", | ||
"[php]": { | ||
"editor.defaultFormatter": "junstyle.php-cs-fixer" | ||
}, | ||
"phpstan.configFile": "phpstan.neon" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@ECHO OFF | ||
setlocal DISABLEDELAYEDEXPANSION | ||
set XDEBUG_MODE=debug | ||
php %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"require": { | ||
"configcat/configcat-client": "^6", | ||
"configcat/configcat-client": "^9", | ||
"monolog/monolog": "^1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.