Comments (4)
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.
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.
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.
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)
- How to stack NOT selectors? HOT 2
- Method-scoped Attributes and Attribute parameters are not detected HOT 2
- I want to output error messages along with the function name that defines the architecture HOT 4
- Generics type template support HOT 6
- Stringable not included in ignore_built_in_classes HOT 3
- should the config files be moved to their default locations / Makefile? HOT 1
- PHP enums should not be final HOT 1
- Built-in classes should not be ignored when specifically requested in rules
- Readonly class requirement HOT 2
- After update psalm dies to unknown class HOT 1
- "shouldExtend" assertion not applying to classes that do not have parent class HOT 3
- PHPStan throws violation on accessing `->because()` after `->excluding()` HOT 2
- Extending the rules HOT 8
- Testing the arch tests HOT 2
- Ability to combine assertions HOT 3
- Add an ability to check class naming HOT 4
- `Selector::inNamespace` incorrectly matches classes outside namespace with a similar name
- Report old `includeTrait` or newer `mustInclude` functions in 0.10+ version
- shouldBeNamed assertion not functioning on second run HOT 3
- Plugins should not be able to referance other plugins HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpat.