test/MessageTraitTest.php
/**
     * @dataProvider numericHeaderValuesProvider
     * @group 99
     *
     * @psalm-suppress InvalidScalarArgument this test explicitly verifies that pre-type-declaration
     *                                       implicit type conversion semantics still apply, for BC Compliance
     */
@dataProvider numericHeaderValuesProvider
@group 99

@psalm-suppress InvalidScalarArgument this test explicitly verifies that pre-type-declaration
implicit type conversion semantics still apply, for BC Compliance
@dataProvider numericHeaderValuesProvider @group 99 @psalm - suppress InvalidScalarArgument this test explicitly verifies that pre - type - declaration implicit type conversion semantics still apply for BC Compliance
public function testWithHeaderShouldAllowIntegersAndFloats(float $value): void
    {
        $message = $this->message
            ->withHeader('X-Test-Array', [ $value ])
            ->withHeader('X-Test-Scalar', $value);
        $this->assertSame([
            'X-Test-Array'  => [ (string) $value ],
            'X-Test-Scalar' => [ (string) $value ],
        ], $message->getHeaders());
    }
public function testWithHeaderShouldAllowIntegersAndFloats ( float $ value ) : void { $ message = $ this -> message -> withHeader ( 'X-Test-Array' , [ $ value ] ) -> withHeader ( 'X-Test-Scalar' , $ value ) ; $ this -> assertSame ( [ 'X-Test-Array' => [ ( string ) $ value ] , 'X-Test-Scalar' => [ ( string ) $ value ] , ] , $ message -> getHeaders ( ) ) ; }
@dataProvider numericHeaderValuesProvider
 @group 99
@dataProvider numericHeaderValuesProvider @group 99