No-DB-URL-Shortener
No-DB-URL-Shortener copied to clipboard
PHP 8.2 compatibility
Any chance you could update your repo to ensure compatibility with PHP 8.2?
Currently, once I enable PHP 8.2, I get some error messages, but they all point to URLShortener.php.
'\nWarning: Undefined array key "hash" in /example.com/lib/URLShortener/URLShortener.php on line 382\n\nWarning: Undefined property: URLShortener::$alphabet in /example.com/lib/URLShortener/URLShortener.php on line 243\n\nWarning: Undefined array key "id" in /example.com/lib/URLShortener/URLShortener.php on line 382\n{"originalURL":"https:\/\/www.google.com\/","shortURL":"https:\/\/example.com\/kEGdz","baseURL":"example.com","hash":"kEGdz"}'
I'm sorry I can't help rewriting the affected parts myself, I'm a Python developer and don't have much expertise in PHP.