File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
user_guide_src/source/changelogs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ If you had passed a non-existent classname by mistake, the previous version
5757would have returned a class instance in the ``App `` or ``Config `` namespace
5858because of the ``preferApp `` feature.
5959
60- For example, in a controller (``namespace App\Controllers ``), if you call
61- ``config(Config\App::class) `` by mistake (note that you forgot the leading ``\ ``
62- in `` Config\App::class ``), that means you pass ``App\Controllers\Config\App ``.
63- But the class does not exist, so now Factories return ``null ``.
60+ For example, in a controller (``namespace App\Controllers ``), if you called
61+ ``config(Config\App::class) `` by mistake (note the class is missing the leading ``\ ``),
62+ meaning you actually passed ``App\Controllers\Config\App ``.
63+ But that class does not exist, so now Factories will return ``null ``.
6464
6565Property Name
6666^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments