Skip to content

[Form] The index 0 is not within the property path #21511

Closed
@Aerendir

Description

@Aerendir
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? yes/no
Symfony version x.y.z

The tests of my bundle https://github.com/Aerendir/stripe-bundle fails with PHP 7.2.

The reported error is:

  1. SerendipityHQ\Bundle\StripeBundle\Tests\Model\CreditCardStripeTokenTypeTest::testSubmitValidData
    Symfony\Component\PropertyAccess\Exception\OutOfBoundsException: The index 0 is not within the property path
    /home/travis/build/Aerendir/stripe-bundle/vendor/symfony/property-access/PropertyPath.php:188
    /home/travis/build/Aerendir/stripe-bundle/vendor/symfony/property-access/PropertyAccessor.php:218
    /home/travis/build/Aerendir/stripe-bundle/vendor/symfony/form/Extension/Core/DataMapper/PropertyPathMapper.php:93
    /home/travis/build/Aerendir/stripe-bundle/vendor/symfony/form/Form.php:618
    /home/travis/build/Aerendir/stripe-bundle/Tests/Form/Type/CreditCardStripeTokenTypeTest.php:23

The code is here.
The build is here.

Unfortunately I have no idea of how to fix the problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions