We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ccc5b0 commit 55f26cdCopy full SHA for 55f26cd
1 file changed
user_guide_src/source/general/errors/007.php
@@ -1,5 +1,9 @@
1
<?php
2
3
-if (! $page = $pageModel->find($id)) {
4
- throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound();
+use CodeIgniter\Exceptions\PageNotFoundException;
+
5
+$page = $pageModel->find($id);
6
7
+if ($page === null) {
8
+ throw PageNotFoundException::forPageNotFound();
9
}
0 commit comments