Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/pimple/pimple/src/Pimple/Container.php on line 133

Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/pimple/pimple/src/Pimple/Container.php on line 98

Deprecated: Return type of Pimple\Container::offsetSet($id, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/pimple/pimple/src/Pimple/Container.php on line 79

Deprecated: Return type of Pimple\Container::offsetUnset($id) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/pimple/pimple/src/Pimple/Container.php on line 143

Deprecated: Return type of Slim\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 141

Deprecated: Return type of Slim\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 153

Deprecated: Return type of Slim\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 164

Deprecated: Return type of Slim\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 174

Deprecated: Return type of Slim\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 184

Deprecated: Return type of Slim\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 198

Deprecated: Return type of Slim\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 141

Deprecated: Return type of Slim\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 153

Deprecated: Return type of Slim\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 164

Deprecated: Return type of Slim\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 174

Deprecated: Return type of Slim\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 184

Deprecated: Return type of Slim\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Collection.php on line 198
Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: TypeError
Message: Unsupported operand types: string - int
File: /home/cdi-solutions/www/news/model/news.php
Line: 120

Trace

#0 /home/cdi-solutions/www/news/controller/newsController.php(39): news->getContents()
#1 [internal function]: newsController->viewList()
#2 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func()
#3 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Route.php(335): Slim\Handlers\Strategies\RequestResponse->__invoke()
#4 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()
#5 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/Route.php(313): Slim\Route->callMiddlewareStack()
#6 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/App.php(513): Slim\Route->run()
#7 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke()
#8 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/App.php(406): Slim\App->callMiddlewareStack()
#9 /home/cdi-solutions/www/_backend/slim/vendor/slim/slim/Slim/App.php(314): Slim\App->process()
#10 /home/cdi-solutions/www/news/index.php(41): Slim\App->run()
#11 {main}

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/cdi-solutions/www/_backend/slim/vendor/monolog/monolog/src/Monolog/Logger.php on line 318