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

Fatal error: Uncaught Error: Call to undefined function Medoo\array_key_last() #1004

Closed
RetiredQQ opened this issue Aug 16, 2021 · 2 comments

Comments

@RetiredQQ
Copy link

Information

  • Version of Medoo: 2.1.2 (latest)
  • Type of Database (MySQL, MSSQL, SQLite...): MySQL
  • System (Liunx\Windows\Mac): Linux - PHP 7.2

Describe the Problem
As I said in the title but when I try version 1.7.1 its works so I downgrade Medoo to the old version.

Detail Code
$db->select("users", ["is_refunded"], ["LIMIT" => 100]);

Expected output
A clear and concise description of what output you expected.
Fatal error: Uncaught Error: Call to undefined function Medoo\array_key_last() in /var/www/html/Medoo.php:1584

@catfan
Copy link
Owner

catfan commented Aug 16, 2021

Since v2.0, the minimal requirement is PHP 7.3+.

Just upgrade to PHP 7.3, or PHP 7.4 is recommended.

@RetiredQQ
Copy link
Author

I just confirm that after upgrading my PHP version to 7.3 the issue is gone.

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

No branches or pull requests

2 participants