Code Monkey home page Code Monkey logo

Comments (4)

carlosas avatar carlosas commented on July 24, 2024 2

Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
This happens because "4" is not a valid verbosity configuration 😅 I added a check to default it instead of failing :)

Regarding the original error, I have released 0.7.5 and it should work properly. If you still see something weird, please tell me!

Thanks for the tests :)

from phpat.

carlosas avatar carlosas commented on July 24, 2024

Hi, thanks for the compliments.
Could you tell me which version of phpat and which version of PHP are you using? Are they the same in local and in Gitlab CI?
I will try to reproduce it and debug it. I'm pretty sure this error occurs at AST creation, unfortunately there is not more debug than --verbosity=0 available.

I would bet for some memory or extension issue with BetterReflection, could you check if it works properly with phpat version 0.7.2? And with dev-master?

from phpat.

josefsabl avatar josefsabl commented on July 24, 2024

phpat: 0.7.3
PHP: 7.4.10-fpm-alpine (Docker)

Both are same on my local machine as well as in the Gitlab CI (Same Dockerfile, same composer.lock).

I added --verbosity=4

Output of tests

Will update this post as the pipelines run (will take some time 😇).

dev-master

Won't post the log here as it is huge. And it passes as it seems.

0.7.4

PHP Notice:  Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Notice: Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Notice:  Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Notice: Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Notice:  Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Notice: Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Notice:  Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Notice: Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Notice:  Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Notice: Undefined offset: 3 in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
PHP Warning:  in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107
Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/vendor/phpat/phpat/src/Output/StdOutput.php on line 107

0.7.3

0.7.2

from phpat.

josefsabl avatar josefsabl commented on July 24, 2024

Okay, so I am on dev-master and am happy. Does it make sense to do more tests since dev-master is passing?

from phpat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.