Skip to content

Commit

Permalink
fix SPI package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Dec 23, 2024
1 parent 09ea81d commit 1e948e8
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 17 deletions.
10 changes: 0 additions & 10 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@

declare(strict_types=1);

use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector;
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\Config\RectorConfig;
//use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
//use Rector\Php82\Rector\Property\ReadOnlyPropertyRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\ValueObject\PhpVersion;
Expand All @@ -29,13 +26,6 @@
]);
$rectorConfig->skip([
FlipTypeControlToUseExclusiveTypeRector::class,
/*NewInInitializerRector::class => [
__DIR__ . '/src/SDK/Trace/Sampler/ParentBased.php',
],
ReadOnlyPropertyRector::class => [
__DIR__ . '/src/SDK/Metrics/Stream/SynchronousMetricStream.php',
__DIR__ . '/tests/Unit/Extension/Propagator',
],*/
DisallowedEmptyRuleFixerRector::class,
ExplicitBoolCompareRector::class,
LocallyCalledStaticMethodToNonStaticRector::class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* @implements ComponentProvider<LogRecordExporterInterface>
*/
#[PackageDependency('open-telemetry/exporter-otlp', '^1.0.5')]
#[PackageDependency('open-telemetry/exporter-otlp', '^2')]
final class LogRecordExporterOtlp implements ComponentProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* @implements ComponentProvider<MetricExporterInterface>
*/
#[PackageDependency('open-telemetry/exporter-otlp', '^1.0.5')]
#[PackageDependency('open-telemetry/exporter-otlp', '^2')]
final class MetricExporterOtlp implements ComponentProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* @implements ComponentProvider<TextMapPropagatorInterface>
*/
#[PackageDependency('open-telemetry/extension-propagator-b3', '^1.0.1')]
#[PackageDependency('open-telemetry/extension-propagator-b3', '^2')]
final class TextMapPropagatorB3 implements ComponentProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* @implements ComponentProvider<TextMapPropagatorInterface>
*/
#[PackageDependency('open-telemetry/extension-propagator-b3', '^1.0.1')]
#[PackageDependency('open-telemetry/extension-propagator-b3', '^2')]
final class TextMapPropagatorB3Multi implements ComponentProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* @implements ComponentProvider<TextMapPropagatorInterface>
*/
#[PackageDependency('open-telemetry/extension-propagator-jaeger', '^0.0.2')]
#[PackageDependency('open-telemetry/extension-propagator-jaeger', '^2')]
final class TextMapPropagatorJaeger implements ComponentProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* @implements ComponentProvider<SpanExporterInterface>
*/
#[PackageDependency('open-telemetry/exporter-otlp', '^1.0.5')]
#[PackageDependency('open-telemetry/exporter-otlp', '^2')]
final class SpanExporterOtlp implements ComponentProvider
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* @implements ComponentProvider<SpanExporterInterface>
*/
#[PackageDependency('open-telemetry/exporter-zipkin', '^1.0')]
#[PackageDependency('open-telemetry/exporter-zipkin', '^2')]
final class SpanExporterZipkin implements ComponentProvider
{

Expand Down

0 comments on commit 1e948e8

Please sign in to comment.