Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while installing composer #477

Closed
OthmanSefraoui opened this issue Apr 22, 2020 · 5 comments
Closed

Issue while installing composer #477

OthmanSefraoui opened this issue Apr 22, 2020 · 5 comments

Comments

@OthmanSefraoui
Copy link

OthmanSefraoui commented Apr 22, 2020

Q A
Bug report? [ ]
Feature request? [ ]
Support request? [ ]

Hello i'm trying to install the composer but i have this error.
An error occurred when executing the "'cache:clear --no-warmup'" command:
In DocParser.php line 995:
  Notice: Trying to access array offset on value of type null
Any suggestion ?

@SchulzWill
Copy link

Hello there!
You should change the content of this line to:
while ($this->lexer->lookahead!==null && $this->lexer->lookahead['position'] === ($this->lexer->token['position'] + strlen($this->lexer->token['value']))

The full explanation to do that may be found on doctrine/annotations#273

@OthmanSefraoui
Copy link
Author

Thanks a lot. but i get this error if i change the content of the line [Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_NAMESPACE_S
EPARATOR, got '(' at position 25 in class Cocorico\CoreBundle\Document\List
ingAvailabilityTime.

@rubberduckyint
Copy link

rubberduckyint commented Apr 28, 2020

getting this erro. Not sure what would cause it. In DocParser.php line 995:

Notice: Trying to access array offset on value of type null

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command:

In DocParser.php line 995:

Notice: Trying to access array offset on value of type null      

@cocolabssas
Copy link
Contributor

Hello,

It can be related to your PHP version. For now Cocorico has been tested and works with php 7.1 and 7.2.

@OthmanSefraoui
Copy link
Author

Thanks i fixed it by changing PHP version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@SchulzWill @rubberduckyint @cocolabssas @OthmanSefraoui and others