Skip to content

Commit a31e46f

Browse files
committed
Doc: Incorrect example of creating an IncomingRequest instance.
1 parent eac264e commit a31e46f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • user_guide_src/source/testing/controllers

‎user_guide_src/source/testing/controllers/006.php‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<?php
22

3-
$request = new \CodeIgniter\HTTP\IncomingRequest(new \Config\App(), new URI('http://example.com'));
3+
$request = new \CodeIgniter\HTTP\IncomingRequest(
4+
new \Config\App(),
5+
new \CodeIgniter\HTTP\URI('http://example.com'),
6+
null,
7+
new \CodeIgniter\HTTP\UserAgent()
8+
);
9+
410
$request->setLocale($locale);
511

612
$results = $this->withRequest($request)

0 commit comments

Comments
 (0)