Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: ErrorException
Code: 8192
Message: Return type of Slim\Http\Response::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
File: /home/rexforet/public_html/class/Slim/Http/Response.php
Line: 451

Trace

#0 /home/rexforet/public_html/class/Slim/Http/Response.php(46): Slim\Slim::handleErrors(8192, 'Return type of ...', '/home/rexforet/...', 451)
#1 /home/rexforet/public_html/class/Slim/Slim.php(131): require('/home/rexforet/...')
#2 /home/rexforet/public_html/class/Slim/Slim.php(169): Slim\Slim::autoload('Response')
#3 /home/rexforet/public_html/class/Slim/Helper/Set.php(228): Slim\Slim->{closure:Slim\Slim::__construct():168}(Object(Slim\Helper\Set))
#4 /home/rexforet/public_html/class/Slim/Helper/Set.php(88): Slim\Helper\Set->{closure:Slim\Helper\Set::singleton():224}(Object(Slim\Helper\Set))
#5 /home/rexforet/public_html/class/Slim/Slim.php(234): Slim\Helper\Set->get('response')
#6 /home/rexforet/public_html/class/Slim/Slim.php(1040): Slim\Slim->__get('response')
#7 /home/rexforet/public_html/class/Slim/Slim.php(602): Slim\Slim->halt(404, '
#8 /home/rexforet/public_html/class/Slim/Slim.php(1367): Slim\Slim->notFound()
#9 /home/rexforet/public_html/class/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#10 /home/rexforet/public_html/class/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#11 /home/rexforet/public_html/class/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#12 /home/rexforet/public_html/class/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
#13 /home/rexforet/public_html/index.php(24): Slim\Slim->run()
#14 {main}