-
Notifications
You must be signed in to change notification settings - Fork 30
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
Incompatible with PHP 7.3 #19
Comments
@ranjanrak Can you take a look at this? |
@VarunAgw |
Besides, it's terrible to force people to use PHP 8.0 which was released just 4 months ago. You have to understand that people run multiple projects other than Zerodha PHP SDK on their development/production machine. PHP 8 has breaking changes. By upgrading Zerodha SDK, I am not going to break all my other projects whose dependencies are not compatible with PHP 8 yet. You have to give the entire PHP eco-system time to upgrade before forcing such latest standards. |
Thanks for your input. We are re-evaluating our PHP version compatibility for the recent release. |
Return type (used in getPositions and getMargins) mixed is not implemented in php7.3 yet. It's in php8. |
getLTP function also is not working in > 7.3. Can you please fix it? |
You need to upgrade to PHP > 8.0 for now. |
Here is the PHP 7.3 fixed I made 6 months ago. Feel free to compare it with master before using it. |
@ranjanrak But in "Requirements" section you mentioned 7.3 or greater !!? At least you should update README. Thanks @VarunAgw |
@sathyamoorthi Don't expect too much here. Typical Indian companies attitude. |
Not compatible, still same exception throwing, |
Please test it thoroughly before publishing it to production.
https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.mixed
The feature is introduced in PHP 8.0, yet it's used widely in the code.
Example error: ( ! ) Fatal error: Uncaught TypeError: Return value of KiteConnect\KiteConnect::getPositions() must be an instance of KiteConnect\mixed, instance of stdClass returned in D:\www\trading\vendor\zerodha\phpkiteconnect\src\KiteConnect.php on line 648
There might be more issues with PHP 7.3. Please test it thoroughly with PHP 7.3.
The text was updated successfully, but these errors were encountered: