Skip to content

Commit 021a6f4

Browse files
committed
Add UG cast warning
1 parent 2d2340b commit 021a6f4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • user_guide_src/source/libraries

user_guide_src/source/libraries/uri.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ using the URI class' static ``createURIString()`` method::
6161
// Creates: http://exmample.com/some/path?foo=bar#first-heading
6262
echo URI::createURIString('http', 'example.com', 'some/path', 'foo=bar', 'first-heading');
6363

64+
.. important:: When ``URI`` is cast to a string, it will attempt to adjust project URLs to the
65+
settings defined in ``Config\App``. If you need the exact, unaltered string representation
66+
then use ``URI::createURIString()`` instead.
67+
68+
6469
=============
6570
The URI Parts
6671
=============

0 commit comments

Comments
 (0)