Skip to content

[CONSOLE] PHP 7.4: Trying to access array offset on value of type int #32750

Closed
@mfn

Description

@mfn

Symfony version(s) affected: 4.3.2

Description
The tests of https://github.com/rebing/graphql-laravel break on 7.4 due to this error, here's the most recent travis log:

https://travis-ci.org/rebing/graphql-laravel/jobs/563742611#L321-L335

1) Rebing\GraphQL\Tests\Database\MutationValidationUniqueWithCustomRulesTests\MutationValidationUniqueWithCustomRulesTest::testUniquePassRulePass
ErrorException: Trying to access array offset on value of type int
/home/travis/build/rebing/graphql-laravel/vendor/symfony/console/Input/ArrayInput.php:135
/home/travis/build/rebing/graphql-laravel/vendor/symfony/console/Input/Input.php:55
/home/travis/build/rebing/graphql-laravel/vendor/symfony/console/Application.php:208
/home/travis/build/rebing/graphql-laravel/vendor/symfony/console/Application.php:149
/home/travis/build/rebing/graphql-laravel/vendor/laravel/framework/src/Illuminate/Console/Application.php:90
/home/travis/build/rebing/graphql-laravel/vendor/laravel/framework/src/Illuminate/Console/Application.php:182
/home/travis/build/rebing/graphql-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:275
/home/travis/build/rebing/graphql-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Testing/PendingCommand.php:136
/home/travis/build/rebing/graphql-laravel/vendor/orchestra/testbench-core/src/Database/MigrateProcessor.php:73
/home/travis/build/rebing/graphql-laravel/vendor/orchestra/testbench-core/src/Database/MigrateProcessor.php:44
/home/travis/build/rebing/graphql-laravel/vendor/orchestra/testbench-core/src/Concerns/WithLoadMigrationsFrom.php:27
/home/travis/build/rebing/graphql-laravel/tests/TestCaseDatabase.php:15

How to reproduce
Run the test suite of https://github.com/rebing/graphql-laravel with PHP 7.4

The project only has an implicit dependency on symfony/console but the version installed is also in the logs => https://travis-ci.org/rebing/graphql-laravel/jobs/563742611#L280 :

  - Installing symfony/console (v4.3.2): Loading from cache

Seems the error happens here: https://github.com/symfony/console/blob/7662535c9c9840dc103da7174a8c4064d876fe84/Input/ArrayInput.php#L135

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