No-DB-URL-Shortener icon indicating copy to clipboard operation
No-DB-URL-Shortener copied to clipboard

PHP 8.2 compatibility

Open makorus opened this issue 11 months ago • 0 comments

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.

makorus avatar Mar 13 '24 07:03 makorus