Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: amplitude/experiment-php-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.2.1
Choose a base ref
...
head repository: amplitude/experiment-php-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.2.2
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on Jan 14, 2025

  1. fix: use explicit nullable type for AmplitudeConfig (#32)

    ruudk authored Jan 14, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c5a91cd View commit details

Commits on Jan 15, 2025

  1. chore(release): 1.2.2 [skip ci]

    ## [1.2.2](1.2.1...1.2.2) (2025-01-15)
    
    ### Bug Fixes
    
    * use explicit nullable type for AmplitudeConfig ([#32](#32)) ([c5a91cd](c5a91cd))
    amplitude-sdk-bot committed Jan 15, 2025
    Copy the full SHA
    3527848 View commit details
Showing with 11 additions and 4 deletions.
  1. +1 −1 .github/workflows/test.yml
  2. +7 −0 CHANGELOG.md
  3. +1 −1 src/Amplitude/Amplitude.php
  4. +1 −1 src/Version.php
  5. +1 −1 tests/Amplitude/MockAmplitude.php
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3']
php-version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.2.2](https://github.com/amplitude/experiment-php-server/compare/1.2.1...1.2.2) (2025-01-15)


### Bug Fixes

* use explicit nullable type for AmplitudeConfig ([#32](https://github.com/amplitude/experiment-php-server/issues/32)) ([c5a91cd](https://github.com/amplitude/experiment-php-server/commit/c5a91cd0d000e07cfab6b527601631252ecd0a87))

## [1.2.1](https://github.com/amplitude/experiment-php-server/compare/1.2.0...1.2.1) (2024-09-17)


2 changes: 1 addition & 1 deletion src/Amplitude/Amplitude.php
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ class Amplitude
private LoggerInterface $logger;
private AmplitudeConfig $config;

public function __construct(string $apiKey, AmplitudeConfig $config = null)
public function __construct(string $apiKey, ?AmplitudeConfig $config = null)
{
$this->apiKey = $apiKey;
$this->config = $config ?? AmplitudeConfig::builder()->build();
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
namespace AmplitudeExperiment;
const VERSION = '1.2.1';
const VERSION = '1.2.2';
2 changes: 1 addition & 1 deletion tests/Amplitude/MockAmplitude.php
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@

class MockAmplitude extends Amplitude
{
public function __construct(string $apiKey, AmplitudeConfig $config = null)
public function __construct(string $apiKey, ?AmplitudeConfig $config = null)
{
parent::__construct($apiKey, $config);
}