-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b16a30
commit 335deb5
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
335deb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gudmdharalds hope you are doing great! Currently I am using the VIP Code Review Bot and I am getting this error message "Parse error: syntax error, unexpected '|', expecting '{' in vip-go-ci/ap-hashes-api.php on line 23" I Think you could use this approach https://www.php.net/manual/en/migration71.new-features.php You could use something like : ?bool instead of :bool|null What do you think about it? Thanks a lot.
335deb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @FernandoWL!
I'm well thanks, I hope you are too.
Thank you for using the VIP Code Analysis Bot! I hope it proves useful for what you do.
The syntax error you are seeing is because
vip-go-ci
now uses syntax that is only compatible with PHP 8.0 and later versions. We made the decision to move to this syntax so that we could use strict type definitions across the code to increase reliability and security. There is unfortunately no backwards compatible syntax for some of the definitions we are using. We evaluated the option of maintaining compatibility, but in light of the fact that PHP 7.4 is only supported for critical security issues for a few more months, this did not seem worth the effort.However, you can still use the Bot by:
vip-go-ci
. This is the last version that supports these two versions of PHP (7.4/7.3).I'm sorry that we cannot maintain a version that is compatible with older versions of PHP. We want to make use of new features of the language to increase reliability and unfortunately a compromise was not possible at this time.
I hope that one of the two options above are available to you.
Thanks!
335deb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @gudmdharalds Thank you very much for your clear and concise answer, I will take it into consideration to continue using the VIP BOT.