From 9a5d5db5f3ad5e6ce3a560e9abd06073a01c84cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Wed, 31 Dec 2025 06:27:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9A=E3=83=8B=E3=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-JP.md | 2 +- README.md | 2 +- util.php | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README-JP.md b/README-JP.md index fa4c117..17b3cd0 100644 --- a/README-JP.md +++ b/README-JP.md @@ -7,7 +7,7 @@ サンプル:[https://lbdemo.technicalsuwako.moe/](https://lbdemo.technicalsuwako.moe/) ## Little Beast とは? -Little Beast は PHP 8.5 以上向けのフレームワークで、076.moe(ゲーム開発会社)と technicalsuwako.moe(社長のブログ)向けに作られました。\ +Little Beast は PHP 8.3 以上向けのフレームワークで、076.moe(ゲーム開発会社)と technicalsuwako.moe(社長のブログ)向けに作られました。\ メイン考え方は「必要な物だけ拡張し、不要な物は削除する」です。\ 各コア機能はライブラリに分割されている為、必要な物だけを選び易い設計になっています。\ 全てのモジュールはゼロから書かれており、データベースは一切必要ありません。 diff --git a/README.md b/README.md index 78722e0..4ff927b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Simple, Pragmatic, Anti-bloat Demo installation: [https://lbdemo.technicalsuwako.moe/](https://lbdemo.technicalsuwako.moe/) ## What is Little Beast? -Little Beast is a PHP 8.5 or above framework made for 076.moe (game developer company) and technicalsuwako.moe (CEO's blog).\ +Little Beast is a PHP 8.3 or above framework made for 076.moe (game developer company) and technicalsuwako.moe (CEO's blog).\ The core mentality is to extend what you need, and remove what you don't need.\ Each core feature is split into libraries, so it is easy to choose what you need.\ All modules are written from scratch, nothing is to be require a database. diff --git a/util.php b/util.php index f0cc78a..88b2290 100644 --- a/util.php +++ b/util.php @@ -385,4 +385,11 @@ function countmatch(string $str): bool { function getImageInfo(string $url): \Site\Lib\Image { $img = new \Site\Lib\Image($url); return $img; +} + +// PHP 8.3と8.4の場合 +if (!function_exists('array_last')) { + function array_last(array $array): mixed { + return $array === [] ? null : $array[array_key_last($array)]; + } } \ No newline at end of file