Skip to content

[0.7.0] Fatal error: Uncaught TypeError > Blog #46

@Hiobi

Description

@Hiobi

Hi,

I've got an error on 0.7.0, reproduced on release-candidate branch (git pull).
(it seems to be solved on 0.7.1)

  • PHP 8.1 / Apache2 (docker image built FROM php:8.1-apache)
Fatal error: Uncaught TypeError: wishthis\Cache\Blog::get(): Return value must be of type stdClass|array, null returned in /var/www/html/src/classes/cache/blog.php:45 Stack trace: #0 /var/www/html/src/classes/blog.php(20): wishthis\Cache\Blog->get() #1 /var/www/html/src/classes/blog.php(68): wishthis\Blog::get('https://wishthi...') #2 /var/www/html/src/api/blog.php(26): wishthis\Blog::getPosts() #3 {main} thrown in /var/www/html/src/classes/cache/blog.php on line 45

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions