createStrictClassPath()
createStrictClassPath(string $className = '') : string|null
Create a strict, global class path.
This helper ensures that the input is a non-empty string, and then
automatically prepends a leading \
if missing, so that PHP understands
that the class search MUST happen only in the global namespace.
Parameters
string | $className | The class name to convert. |
Returns
string|null —String if non-empty string input, otherwise NULL
.