Skip to content

Commit

Permalink
#2 - update php matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
teiling88 committed Nov 28, 2023
1 parent 5d2c53e commit d17051a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@ jobs:
build:
strategy:
matrix:
php: ['7.2','7.3','7.4','8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
symfony: ['5.4', '6.3']
exclude:
- php: 7.2
symfony: 6.3
- php: 7.3
symfony: 6.3
- php: 7.3
symfony: 7.0
- php: 7.4
symfony: 6.3
- php: 7.4
symfony: 7.0
- php: 8.0
symfony: 6.3

Expand Down
8 changes: 4 additions & 4 deletions src/Profiler/FeatureDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function getRequests(): array
*/
public function getActivators(): array
{
return $this->data['activators'];
return $this->data['activators'] ?? [];
}

/**
Expand All @@ -166,7 +166,7 @@ public function getActivators(): array
*/
public function getDecorators(): array
{
return $this->data['decorators'];
return $this->data['decorators'] ?? [];
}

/**
Expand All @@ -176,7 +176,7 @@ public function getDecorators(): array
*/
public function getTrace(): array
{
return $this->data['trace'];
return $this->data['trace'] ?? [];
}

/**
Expand All @@ -186,7 +186,7 @@ public function getTrace(): array
*/
public function getSummary(): array
{
return $this->data['summary'];
return $this->data['summary'] ?? [];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Flagception\Bundle\FlagceptionBundle\DependencyInjection\Configurator\DatabaseConfigurator;
use Flagception\Bundle\FlagceptionBundle\DependencyInjection\FlagceptionExtension;
use LogicException;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down
1 change: 1 addition & 0 deletions tests/Profiler/FeatureDataCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function testReset()
{
$collector = new FeatureDataCollector(new TraceableChainActivator(), new ChainDecorator());
$collector->reset();
static::assertEquals([], $collector->getActivators());
}

/**
Expand Down

0 comments on commit d17051a

Please sign in to comment.