Skip to content

Deprecated message bug first generation #35

@devath0

Description

@devath0
Deprecated: Piggly\Pix\Emv\Field::__construct(): Implicitly marking parameter $id as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/vendor/piggly/php-pix/src/Emv/Field.php on line 50

php version 8.4.2
symfony version: 7.1.*

Code sample

use Piggly\Pix\Parser;
use Piggly\Pix\StaticPayload;

 $payload = new StaticPayload()
            ->setAmount($order->getPlan()->getPrice())
            ->setTid($order->getId())
            ->setDescription($order->getId())
            ->setPixKey(Parser::KEY_TYPE_DOCUMENT, '00000000000')
            ->setMerchantName('SAMPLE')
            ->setMerchantCity('SAMPLE');

after the first mistake the next generations will be successful

This issue is not about the deprecation message, but about it breaking the flow, the deprecation message is expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions