mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 20:17:46 +02:00
build: add phpstan-codeigniter extension to manage config(), model() and service() functions
This commit is contained in:
parent
ae57601c83
commit
77c2d08b6e
15 changed files with 181 additions and 41 deletions
|
|
@ -50,7 +50,7 @@ class PostController extends Controller
|
|||
|
||||
public function _remap(string $method, string ...$params): mixed
|
||||
{
|
||||
if (($post = model('PostModel', false)->getPostById($params[0])) === null) {
|
||||
if (! ($post = model('PostModel', false)->getPostById($params[0])) instanceof Post) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue