array_last requires PHP 8.5+ #1

Closed
opened 2026-05-26 21:35:30 +00:00 by b14r · 1 comment

I set up PHP with frankenphp which came with PHP 8.4.13, but I couldn't run the project because of the new PHP 8.5+ array_last used in neato.php.

Fatal error: Uncaught Error: Call to undefined function array_last() in /home/dev/web/my-site/neato.php:195

Ideas to resolve the issue:

  • Use backward-compatible code.
  • Provide a fallback solution / polyfill for the function array_last.
  • Set project requirements to PHP 8.5+.
I set up PHP with frankenphp which came with PHP 8.4.13, but I couldn't run the project because of the new PHP 8.5+ `array_last` used [in neato.php](https://source.tube/neatnik/Neato/src/commit/089cd42f220b7615cd72be6211637129c82e5955/neato.php#L195). ``` Fatal error: Uncaught Error: Call to undefined function array_last() in /home/dev/web/my-site/neato.php:195 ``` **Ideas to resolve the issue:** - Use backward-compatible code. - Provide a fallback solution / polyfill for the function `array_last`. - Set project requirements to PHP 8.5+.
Owner

Sorry about that! Fixed in 4fdff07ba4.

Sorry about that! Fixed in 4fdff07ba4.
adam closed this issue 2026-05-26 21:39:45 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
neatnik/Neato#1
No description provided.